Skip to content

Commit

Permalink
Move test archives to a separate directory
Browse files Browse the repository at this point in the history
Signed-off-by: František Nečas <fifinecas@seznam.cz>
  • Loading branch information
FrNecas committed Feb 20, 2020
1 parent ba55297 commit 5598e11
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rebasehelper/tests/helpers/test_lookaside_cache_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TestLookasideCacheHelper:

TEST_FILES: List[str] = [
'documentation.tar.xz',
'archive.tar.bz2',
'archives/archive.tar.bz2',
]

@pytest.mark.parametrize('package, filename, hashtype, hsh', [
Expand Down
5 changes: 2 additions & 3 deletions rebasehelper/tests/test_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class TestArchive:
ARCHIVED_FILE: str = 'file.txt'
ARCHIVED_FILE_CONTENT: str = 'simple testing file'

# These files located in TEST_FILES_DIR will be copied into the testing environment
TEST_FILES: List[str] = [
TEST_FILES: List[str] = [os.path.join('archives', archive) for archive in [
TAR_GZ,
TGZ,
TAR_XZ,
Expand All @@ -58,7 +57,7 @@ class TestArchive:
GEM,
INVALID_TAR_BZ2,
INVALID_TAR_XZ,
]
]]

@pytest.fixture
def extracted_archive(self, archive, workdir):
Expand Down
File renamed without changes.

0 comments on commit 5598e11

Please sign in to comment.