Skip to content

Commit

Permalink
Keep test data files
Browse files Browse the repository at this point in the history
- useful for inspection
- cleaned up anyways since in /tmp directory
  • Loading branch information
pylipp committed Dec 1, 2020
1 parent b2b7b9f commit bc468f0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import tempfile
import unittest
from datetime import datetime as dt
Expand Down Expand Up @@ -31,13 +30,6 @@ def setUp(self):
self.info = mock.MagicMock()
self.error = mock.MagicMock()

def tearDown(self):
database_filepath = os.path.join(
TEST_DATA_DIR, "{}.json".format(self.__class__.period))
# Not all test cases produce database files
if os.path.exists(database_filepath):
os.remove(database_filepath)

def cli_run(self, command_line, log_method="info", format_args=()):
"""Wrapper around cli.run() function. Adds convenient command line
options (period and config filepath). Executes the actual run() function
Expand Down

0 comments on commit bc468f0

Please sign in to comment.