Skip to content

Commit d730ce1

Browse files
committed
properly call run_create_projects function using CliRunner
1 parent 37c6098 commit d730ce1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mapswipe_workers/tests/integration/test_create_footprint_project.py

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

33
import set_up
44
import tear_down
5+
from click.testing import CliRunner
56

67
from mapswipe_workers import auth, mapswipe_workers
78
from mapswipe_workers.utils.create_directories import create_directories
@@ -21,7 +22,9 @@ def tearDown(self):
2122
tear_down.delete_test_data(element)
2223

2324
def test_create_footprint_project(self):
24-
mapswipe_workers.run_create_projects()
25+
runner = CliRunner()
26+
runner.invoke(mapswipe_workers.run_create_projects)
27+
2528
pg_db = auth.postgresDB()
2629
for element in self.project_id:
2730
query = "SELECT project_id FROM projects WHERE project_id = %s"

0 commit comments

Comments
 (0)