Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Aug 1, 2024
1 parent 062360e commit fffbd5c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions backend/gn_module_monitoring/tests/test_commands/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
from gn_module_monitoring.tests.fixtures.generic import *
from gn_module_monitoring.command.cmd import (
cmd_remove_monitoring_module_cmd,
cmd_process_all,
cmd_process_export_csv,
cmd_process_sql,
cmd_process_available_permission_module,
cmd_add_module_nomenclature_cli,
)
Expand Down Expand Up @@ -42,29 +41,22 @@ def test_remove_monitoring_module(self, install_module_test):
def test_process_all_with_module(self, install_module_test):
runner = current_app.test_cli_runner()
# Commande process all
result = runner.invoke(cmd_process_all, ["test"])
# Pas de result juste <Result okay>
assert result.exit_code == 0
result = runner.invoke(cmd_process_export_csv, ["test"])
result = runner.invoke(cmd_process_sql, ["test"])
# Pas de result juste <Result okay>
assert result.exit_code == 0

def test_process_all_without_module(self, install_module_test):
runner = current_app.test_cli_runner()
# Commande process all
result = runner.invoke(cmd_process_all)
# Pas de result
assert result.exit_code == 0

result = runner.invoke(cmd_process_export_csv)
result = runner.invoke(cmd_process_sql)
# Pas de result
assert result.exit_code == 0

def test_process_all_with_module(self, install_module_test):
runner = current_app.test_cli_runner()
# Commande process all
# import pdb
result = runner.invoke(cmd_process_all, ["test"])
result = runner.invoke(cmd_process_sql, ["test"])
# Pas de result juste <Result okay>
assert result.exit_code == 0

Expand Down

0 comments on commit fffbd5c

Please sign in to comment.