Skip to content

Commit 45ac902

Browse files
committed
tests: move tests files into the package
1 parent 54de3d9 commit 45ac902

19 files changed

+9
-4
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ History:
1212
- doc: add project_urls to setup.cfg
1313
- doc: add an example using the multiprocessing module (closes #82)
1414
- tests: added regression tests for #128 and #135
15+
- tests: move tests files into the package
1516

1617
4.0.2 2019/02/23
1718
- new contributor: foone
File renamed without changes.
File renamed without changes.

tests/conftest.py renamed to mss/tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ def is_travis():
4343

4444
@pytest.fixture(scope="session")
4545
def raw():
46-
with open("tests/res/monitor-1024x768.raw", "rb") as f:
46+
here = os.path.dirname(__file__)
47+
file = os.path.join(here, "res", "monitor-1024x768.raw")
48+
with open(file, "rb") as f:
4749
yield f.read()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)