Skip to content

Commit 1e64819

Browse files
author
Herfort
committed
change tests to development environment
1 parent a94f6d6 commit 1e64819

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

tests/test_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def test_transfer_results():
99
imported_projects = pickle.load(f)
1010

1111
project_ids = [i[1] for i in imported_projects]
12-
BaseFunctions.run_export('production', project_ids)
12+
BaseFunctions.run_export('development', project_ids)
1313

1414

1515
if __name__ == '__main__':

tests/test_import.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55

66
def import_process():
7-
firebase, postgres = BaseFunctions.get_environment('production')
7+
firebase, postgres = BaseFunctions.get_environment('development')
88
fb_db = firebase.database()
99

10-
imported_projects = BaseFunctions.run_import('production')
10+
imported_projects = BaseFunctions.run_import('development')
1111

1212
# save all keys to disk
1313
filename = 'firebase_imported_projects.pickle'

tests/test_initialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def upload_sample_data_to_firebase():
88

9-
firebase, postgres = BaseFunctions.get_environment('production')
9+
firebase, postgres = BaseFunctions.get_environment('development')
1010
fb_db = firebase.database()
1111

1212
with open('sample_data.json') as f:

tests/test_mock_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def simulate_user_contributions(
9595

9696

9797
if __name__ == '__main__':
98-
modus = 'production'
98+
modus = 'development'
9999
firebase, postgres = BaseFunctions.get_environment(modus)
100100

101101
filename = 'firebase_imported_projects.pickle'

tests/test_terminate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def yes_or_no(question):
5353
This will delete all data in firebase and postgres\
5454
(Not only the sample data). Do you wish to continue?
5555
'''):
56-
firebase, postgres = BaseFunctions.get_environment('production')
56+
firebase, postgres = BaseFunctions.get_environment('development')
5757
fb_db = firebase.database()
5858
p_con = postgres()
5959

tests/test_transfer_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def test_transfer_results():
5-
BaseFunctions.run_transfer_results('production')
5+
BaseFunctions.run_transfer_results('development')
66

77

88
if __name__ == '__main__':

tests/test_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def test_update():
99
imported_projects = pickle.load(f)
1010

1111
project_ids = [i[1] for i in imported_projects]
12-
BaseFunctions.run_update('production', project_ids)
12+
BaseFunctions.run_update('development', project_ids)
1313

1414

1515
if __name__ == '__main__':

0 commit comments

Comments
 (0)