Skip to content

Commit d5ba99a

Browse files
authored
Fix example generation (#965)
* Fix example generation Skip pagination, and fix wrong dependency. * Change generate condition
1 parent 9d13c19 commit d5ba99a

File tree

4 files changed

+4
-32
lines changed

4 files changed

+4
-32
lines changed

.generator/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def pytest_bdd_after_scenario(request, feature, scenario):
158158

159159
def pytest_bdd_apply_tag(tag, function):
160160
"""Register tags as custom markers and skip test for '@skip' ones."""
161-
skip_tags = {}
161+
skip_tags = {"with-pagination"}
162162
if tag in skip_tags:
163163
marker = pytest.mark.skip(reason=f"skipped because '{tag}' in {skip_tags}")
164164
marker(function)

.generator/poetry.lock

Lines changed: 1 addition & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.generator/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jsonref = "0.2"
1313
jinja2 = "3.0.3"
1414
pytest = "^7.1.1"
1515
pytest-bdd = "^5.0.0"
16-
dateutils = "^0.6.12"
16+
python-dateutil = "2.8.2"
1717

1818
[tool.poetry.dev-dependencies]
1919

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
name: Generate
66
language: system
77
entry: make
8-
files: '^(\.generator/.*|\.pre-commit-config\.yaml|Makefile)'
8+
files: '^(\.generator/.*|\.pre-commit-config\.yaml|Makefile|\tests/v*/features/.*)'
99
pass_filenames: false
1010
- id: docs
1111
name: Format documentation

0 commit comments

Comments
 (0)