Skip to content

Commit

Permalink
Try to fix AppVeyor CI test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Jul 15, 2018
1 parent a1237ed commit efa68e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test_file_subcommand_ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Test_file_subcommand_ipynb(object):
IPYNB_FILE_LIST = [
"test/data/pytablewriter_examples.ipynb",
"test/data/jupyter_notebook_example.ipynb",
"test/data/DataProperty.ipynb",
"test/data/empty.ipynb",
]

Expand All @@ -34,7 +33,6 @@ class Test_file_subcommand_ipynb(object):
[IPYNB_FILE_LIST[0], ExitCode.SUCCESS],
[IPYNB_FILE_LIST[1], ExitCode.SUCCESS],
[IPYNB_FILE_LIST[2], ExitCode.SUCCESS],
[IPYNB_FILE_LIST[3], ExitCode.SUCCESS],
],
)
def test_smoke_one_file(self, file_path, expected):
Expand All @@ -47,6 +45,7 @@ def test_smoke_one_file(self, file_path, expected):
assert result.exit_code == expected, file_path
finally:
if platform.system() != "Windows":
# avoid a test execution error on AppVeyor
os.remove(db_path)

def test_smoke_multi_file(self):
Expand All @@ -58,7 +57,9 @@ def test_smoke_multi_file(self):

assert result.exit_code == ExitCode.SUCCESS
finally:
os.remove(db_path)
if platform.system() != "Windows":
# avoid a test execution error on AppVeyor
os.remove(db_path)

@pytest.mark.parametrize(
["content", "expected"], [["", ExitCode.NO_INPUT], ["{}", ExitCode.NO_INPUT]]
Expand Down

0 comments on commit efa68e4

Please sign in to comment.