diff --git a/tests/test_mceditlib/conftest.py b/tests/conftest.py similarity index 85% rename from tests/test_mceditlib/conftest.py rename to tests/conftest.py index 08c604c..4096548 100644 --- a/tests/test_mceditlib/conftest.py +++ b/tests/conftest.py @@ -7,14 +7,17 @@ from os.path import dirname, basename import py import pytest +import logging +logging.basicConfig(level=logging.INFO) + from mceditlib.worldeditor import WorldEditor _TEST_FILES_DIR = "test_files" -# from $PROJECT/tests/test_mceditlib/conftest.py, get to $PROJECT/test_files +# from $PROJECT/tests/conftest.py, get to $PROJECT/test_files -_PROJECT = dirname(dirname(dirname(__file__))) +_PROJECT = dirname(dirname(__file__)) TEST_FILES_DIR = py.path.local(_PROJECT).join(_TEST_FILES_DIR) @pytest.fixture @@ -42,6 +45,10 @@ def indev_file(tmpdir): def pc_world(tmpdir): return copy_temp_level(tmpdir, "AnvilWorld") +@pytest.fixture +def testbed_schem(tmpdir): + return copy_temp_level(tmpdir, "testbed.schematic") + @pytest.fixture(params=["Station.schematic"]) def schematic_world(tmpdir, request):