Skip to content

Commit

Permalink
wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed May 21, 2024
1 parent ff0c49f commit a9e6290
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .docker/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[pytest]
minversion = 7.0
addopts = -ra -q
addopts = -ra -q --strict-markers
testpaths =
tests
6 changes: 3 additions & 3 deletions .docker/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def target_checker(value):

def pytest_addoption(parser):
parser.addoption(
'--target',
'--variant',
action='store',
required=True,
help='target (image name) of the docker-compose file to use.',
Expand All @@ -25,11 +25,11 @@ def pytest_addoption(parser):

@pytest.fixture(scope='session')
def variant(pytestconfig):
return pytestconfig.getoption('target')
return pytestconfig.getoption('variant')


@pytest.fixture(scope='session')
def docker_compose_file(pytestconfig, variant):
def docker_compose_file(variant):
return f'docker-compose.{variant}.yml'


Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ jobs:
run: pip install -r requirements.txt --no-deps

- name: Run tests
run: pytest -s --target ${{ inputs.target }}
run: pytest -s --target ${{ inputs.target }} tests/
env: ${{ fromJSON(inputs.images) }}

0 comments on commit a9e6290

Please sign in to comment.