Skip to content

Commit

Permalink
Use pytest-cs 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Mar 21, 2023
1 parent 7898398 commit b1b642a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[packages]
pytest-dotenv = "*"
pytest-cs = {ref = "0.4.0", git = "https://github.com/crowdsecurity/pytest-cs.git"}
pytest-cs = {ref = "0.5.0", git = "https://github.com/crowdsecurity/pytest-cs.git"}

[dev-packages]
gnureadline = "*"
Expand Down
4 changes: 2 additions & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
"""
Full integration test with a real Crowdsec running in Docker
"""

import contextlib
import os
import pathlib
import secrets
import string

import pytest

Expand Down Expand Up @@ -94,10 +88,3 @@ def closure(**kw):
cfg |= cb_cfg_factory(**kw)
return cfg
yield closure


@pytest.fixture(scope='session')
def api_key_factory():
def closure(alphabet=string.ascii_letters + string.digits):
return ''.join(secrets.choice(alphabet) for i in range(32))
yield closure

0 comments on commit b1b642a

Please sign in to comment.