Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Configurable Project Name #109

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
feature: add dummy project names to tests
  • Loading branch information
burgess01 committed Dec 7, 2022
commit 44cffea09f6b9f2638768dfdbce4477f51ed95ff
12 changes: 8 additions & 4 deletions tests/output/test_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ def test_run_checks_gg_check_should_show_passed(capsys):
"hello-world.py",
]
)
project_name = "test"
# When run_checks is called
output.run_checks([check])
output.run_checks([check], project_name)
# Then the output shows that the check has passed
out, _ = capsys.readouterr()
assert "✓ Check TODOs" in out
Expand All @@ -46,8 +47,9 @@ def test_run_checks_invalid_gg_args_prints_exception(capsys):
"--exact",
]
)
project_name = "test"
# When run_checks is called
output.run_checks([check])
output.run_checks([check], project_name)
# Then the output contains a declaration
# about the use of an Invalid GatorGrader check
out, _ = capsys.readouterr()
Expand Down Expand Up @@ -93,8 +95,9 @@ def test_run_checks_some_failed_prints_correct_summary(capsys):
]
),
]
project_name = "test"
# When run_checks is called
output.run_checks(checks)
output.run_checks(checks, project_name)
# Then the output shows the correct fraction and percentage of passed checks
out, _ = capsys.readouterr()
assert "Passed 2/3 (67%) of checks" in out
Expand Down Expand Up @@ -137,8 +140,9 @@ def test_run_checks_all_passed_prints_correct_summary(capsys):
]
),
]
project_name = "test"
# When run_checks is called
output.run_checks(checks)
output.run_checks(checks, project_name)
# Then the output shows the correct fraction and percentage of passed checks
out, _ = capsys.readouterr()
assert "Passed 3/3 (100%) of checks" in out