fixing tests

This commit is contained in:
Dan Funk 2020-09-21 14:44:23 -04:00
parent 7af7063b57
commit 53c257d6cd
2 changed files with 2 additions and 13 deletions

View File

@ -21,8 +21,8 @@ class BaseTest(unittest.TestCase):
efficiently when we have a database in place. efficiently when we have a database in place.
""" """
firebase_file = os.path.join(app.instance_path, '..', 'tests', 'data', 'firebase_data.json') firebase_file = os.path.join(app.root_path, 'tests', 'data', 'firebase_data.json')
ivy_file = os.path.join(app.instance_path, '..', 'tests', 'data', 'results.csv') ivy_file = os.path.join(app.root_path, 'tests', 'data', 'results.csv')
if not app.config['TESTING']: if not app.config['TESTING']:

View File

@ -1,11 +0,0 @@
from tests.base_test import BaseTest
from communicator.services.firebase_service import FirebaseService
class FirebaseServiceTest(BaseTest):
def test_get_samples(self):
service = FirebaseService()
samples = service.get_samples()