Skip to content

Commit

Permalink
enable doesnt works mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Aug 22, 2023
1 parent 2b6473c commit 9e7b89a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ score = "no"
max-line-length = 200

[tool.pytest.ini_options]
addopts = '-p no:robotframework'
addopts = ['-p no:robotframework', '--import-mode=importlib']
xfail_strict = true

[tool.mypy]
Expand Down
6 changes: 5 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ def run_pytest(
# i added a test that calls a function from the plugin directly instead of using pytester
# https://github.com/DetachHead/pytest-robotframework/issues/38
return pytester.runpytest(
*pytest_args, "--robotargs", f"-d {pytester.path}", plugins=plugins or []
*pytest_args,
"--import-mode=importlib",
"--robotargs",
f"-d {pytester.path}",
plugins=plugins or [],
)


Expand Down

0 comments on commit 9e7b89a

Please sign in to comment.