8000 Define test constants before using them · jacalata/document-api-python@8141596 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8141596

Browse files
authored
Define test constants before using them
1 parent b959e19 commit 8141596

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/test_xfile.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
from tableaudocumentapi.xfile import find_file_in_zip
66
from tableaudocumentapi import Workbook, Datasource
77

8+
TEST_ASSET_DIR = os.path.join(
9+
os.path.dirname(__file__),
10+
'assets'
11+
)
12+
13+
BAD_ZIP_FILE = os.path.join(
14+
TEST_ASSET_DIR,
15+
'BadZip.zip'
16+
)
17+
818
TWBX_WITH_CACHE_FILES = os.path.join(
919
TEST_ASSET_DIR,
1020
'Cache.twbx'

0 commit comments

Comments
 (0)
0