mirror of
https://github.com/sartography/uva-covid19-testing-communicator.git
synced 2025-02-24 12:58:05 +00:00
fixing tests
This commit is contained in:
parent
7af7063b57
commit
53c257d6cd
@ -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']:
|
||||||
|
@ -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()
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user