Skip to content

Commit

Permalink
Edit team input
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanRosenboim committed Aug 19, 2024
1 parent 3dd540a commit ec30482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test_input.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name": "team1", "members": [], "resources": []}
{ "name": "team1", "members": [], "resources": [] }
4 changes: 2 additions & 2 deletions tests/scripts/test_sync_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit ec30482

Please sign in to comment.