Skip to content

Commit

Permalink
test: Fix test (misnamed step) and add dry-run to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Jan 9, 2025
1 parent 49af9c7 commit 7349c1d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/latest-stack-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,37 @@ jobs:
environment: behaviour-stack-alan

steps:

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Checkout
uses: actions/checkout@v4

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
installer-parallel: true

- name: Install Dependencies
run: poetry install --no-interaction --with dev

- name: Static Analysis
run: |
source .venv/bin/activate
pre-commit run --all-files
- name: Behaviour Tests (Dry Run)
working-directory: ./behaviour
run: |
source ../.venv/bin/activate
behave --dry-run
- name: Behaviour Tests
working-directory: ./behaviour
run: |
Expand Down
2 changes: 1 addition & 1 deletion behaviour/features/steps/steps_then.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def step_impl(context, count) -> None: # pylint: disable=function-redefined
assert context.response_count == count


@then("the response should be {status_code_name}") # pylint: disable=not-callable
@then("the API response should be {status_code_name}") # pylint: disable=not-callable
def step_impl(context, status_code_name) -> None: # pylint: disable=function-redefined
"""Relies on context members: -
- status_code"""
Expand Down

0 comments on commit 7349c1d

Please sign in to comment.