Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions python/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from . import common
import sys
from pathlib import Path

import yup
tests_folder = str(Path(__file__).parent)

if tests_folder not in sys.path:
sys.path.insert(0, tests_folder)
11 changes: 9 additions & 2 deletions python/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import sys
from pathlib import Path

import pytest

from . import common
from .utilities import get_runtime_data_folder, remove_directory_recursively
tests_folder = str(Path(__file__).parent)

if tests_folder not in sys.path:
sys.path.insert(0, tests_folder)

import common
from utilities import get_runtime_data_folder, remove_directory_recursively

import yup

Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_yup_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .. import common
import common
2 changes: 1 addition & 1 deletion python/tests/test_yup_core/test_File.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import pytest

from ..utilities import get_runtime_data_file
from utilities import get_runtime_data_file
import yup

this_file = os.path.abspath(__file__)
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_yup_core/test_FileFilter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

from ..utilities import get_runtime_data_file
from utilities import get_runtime_data_file
import yup

this_file = os.path.abspath(__file__)
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_yup_core/test_FileOutputStream.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import textwrap
import pytest

from ..utilities import get_runtime_data_file
from utilities import get_runtime_data_file
import yup


Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_yup_core/test_JSON.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from ..utilities import get_runtime_data_file
from utilities import get_runtime_data_file
import yup

#==================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_yup_core/test_TemporaryFile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import os

from ..utilities import get_runtime_data_file
from utilities import get_runtime_data_file
import yup

#==================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_yup_core/test_XmlElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
import pytest

from ..utilities import get_runtime_data_folder
from utilities import get_runtime_data_folder
import yup


Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_yup_core/test_ZipFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import yup

from ..utilities import get_runtime_data_folder
from utilities import get_runtime_data_folder


#==================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_yup_events/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import sys

from .. import common
import common

import yup

Expand Down
2 changes: 1 addition & 1 deletion python/tests/test_yup_graphics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from .. import common
import common

import yup

Expand Down
2 changes: 1 addition & 1 deletion python/tests/utilities.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from pathlib import Path

from . import common
import common

import yup

Expand Down
Loading