From ec304828b93e5209f500a83ae4432969a1db1902 Mon Sep 17 00:00:00 2001 From: jonathan Date: Mon, 19 Aug 2024 15:46:41 +0300 Subject: [PATCH] Edit team input --- test_input.json | 2 +- tests/scripts/test_sync_teams.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test_input.json b/test_input.json index 3418a8e..56bfad6 100644 --- a/test_input.json +++ b/test_input.json @@ -1 +1 @@ -{"name": "team1", "members": [], "resources": []} \ No newline at end of file +{ "name": "team1", "members": [], "resources": [] } diff --git a/tests/scripts/test_sync_teams.py b/tests/scripts/test_sync_teams.py index 23b4076..0b53f9f 100644 --- a/tests/scripts/test_sync_teams.py +++ b/tests/scripts/test_sync_teams.py @@ -36,7 +36,7 @@ def organization(): def test_parse_input_file(json_data, expected_teams, expected_skip_no_resources, expected_verify_github_membership): with patch("builtins.open", mock_open(read_data=json_data)): with patch("src.scripts.sync_teams.sync_teams.argparse.ArgumentParser.parse_args") as mock_parse_args: - mock_parse_args.return_value.file = "test_input.json" + mock_parse_args.return_value.file = "tests/test_input.json" mock_parse_args.return_value.skip_no_resources = expected_skip_no_resources mock_parse_args.return_value.verify_github_membership = expected_verify_github_membership @@ -62,7 +62,7 @@ def test_parse_input_file(json_data, expected_teams, expected_skip_no_resources, def test_parse_input_file(json_data, expected_teams, expected_skip_no_resources, expected_verify_github_membership): with patch("builtins.open", mock_open(read_data=json_data)): with patch("src.scripts.sync_teams.sync_teams.argparse.ArgumentParser.parse_args") as mock_parse_args: - mock_parse_args.return_value.file = "test_input.json" + mock_parse_args.return_value.file = "tests/test_input.json" mock_parse_args.return_value.skip_no_resources = expected_skip_no_resources mock_parse_args.return_value.verify_github_membership = expected_verify_github_membership