Skip to content

Commit fffbd5c

Browse files
committed
fix tests
1 parent 062360e commit fffbd5c

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

backend/gn_module_monitoring/tests/test_commands/test_commands.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
from gn_module_monitoring.tests.fixtures.generic import *
1010
from gn_module_monitoring.command.cmd import (
1111
cmd_remove_monitoring_module_cmd,
12-
cmd_process_all,
13-
cmd_process_export_csv,
12+
cmd_process_sql,
1413
cmd_process_available_permission_module,
1514
cmd_add_module_nomenclature_cli,
1615
)
@@ -42,29 +41,22 @@ def test_remove_monitoring_module(self, install_module_test):
4241
def test_process_all_with_module(self, install_module_test):
4342
runner = current_app.test_cli_runner()
4443
# Commande process all
45-
result = runner.invoke(cmd_process_all, ["test"])
46-
# Pas de result juste <Result okay>
47-
assert result.exit_code == 0
48-
result = runner.invoke(cmd_process_export_csv, ["test"])
44+
result = runner.invoke(cmd_process_sql, ["test"])
4945
# Pas de result juste <Result okay>
5046
assert result.exit_code == 0
5147

5248
def test_process_all_without_module(self, install_module_test):
5349
runner = current_app.test_cli_runner()
5450
# Commande process all
55-
result = runner.invoke(cmd_process_all)
56-
# Pas de result
57-
assert result.exit_code == 0
58-
59-
result = runner.invoke(cmd_process_export_csv)
51+
result = runner.invoke(cmd_process_sql)
6052
# Pas de result
6153
assert result.exit_code == 0
6254

6355
def test_process_all_with_module(self, install_module_test):
6456
runner = current_app.test_cli_runner()
6557
# Commande process all
6658
# import pdb
67-
result = runner.invoke(cmd_process_all, ["test"])
59+
result = runner.invoke(cmd_process_sql, ["test"])
6860
# Pas de result juste <Result okay>
6961
assert result.exit_code == 0
7062

0 commit comments

Comments
 (0)