Skip to content

Commit

Permalink
fix: rename selection file to prevent test discovery
Browse files Browse the repository at this point in the history
Rename test_selection.py to selection.py to prevent pytest considering it as a test
  • Loading branch information
guotin committed Dec 21, 2020
1 parent e8ff29d commit b80f30a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[pytest]
norecursedirs = pytest_rts/tests/helper_project pytest_rts/utils
# Prevent helper project tests being collected as tests for pytest-rts
norecursedirs = pytest_rts/tests/helper_project
2 changes: 1 addition & 1 deletion pytest_rts/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pytest_rts.utils.common import update_mapping_db
from pytest_rts.utils.db import DatabaseHelper, DB_FILE_NAME
from pytest_rts.utils.git import get_current_head_hash
from pytest_rts.utils.test_selection import (
from pytest_rts.utils.selection import (
get_tests_and_data_committed,
get_tests_and_data_current,
)
Expand Down
2 changes: 1 addition & 1 deletion pytest_rts/tests/testhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import subprocess
from pytest_rts.utils.db import DatabaseHelper, DB_FILE_NAME
from pytest_rts.utils.common import read_newly_added_tests
from pytest_rts.utils.test_selection import (
from pytest_rts.utils.selection import (
get_tests_and_data_committed,
get_tests_and_data_current,
)
Expand Down
File renamed without changes.

0 comments on commit b80f30a

Please sign in to comment.