Skip to content

Commit

Permalink
Removes R from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danmilne1 committed Jan 31, 2024
1 parent 23bdc69 commit 600c7e4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/test_govcookiecutter_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@

@pytest.mark.parametrize("test_input_repository_hosting_platform", ["GitHub", "GitLab"])
@pytest.mark.parametrize("test_input_project_name", ["A project", "Another project"])
@pytest.mark.parametrize("test_input_using_r", ["Yes", "No"])
def test_request_template_generated_correctly(
cookies,
test_input_repository_hosting_platform: str,
test_input_project_name: str,
test_input_using_r: str,
) -> None:
"""Test the pull or merge request templates are created correctly."""

Expand All @@ -21,7 +19,6 @@ def test_request_template_generated_correctly(
extra_context={
"repository_hosting_platform": test_input_repository_hosting_platform,
"project_name": test_input_project_name,
"using_R": test_input_using_r,
}
)

Expand Down Expand Up @@ -53,17 +50,13 @@ def test_organisational_framework_correct() -> None:


@pytest.mark.parametrize("test_input_repository_name", ["a", "b"])
@pytest.mark.parametrize("test_input_using_r", ["Yes", "No"])
def test_repo_name_directory_correct(
cookies, test_input_repository_name: str, test_input_using_r: str
) -> None:
def test_repo_name_directory_correct(cookies, test_input_repository_name: str) -> None:
"""Check the project repository is generated with the correct name."""

# Create a new project adding extra context
test_output_project = cookies.bake(
extra_context={
"repo_name": test_input_repository_name,
"using_R": test_input_using_r,
}
)

Expand Down Expand Up @@ -102,13 +95,11 @@ def test_repo_name_directory_correct(
@pytest.mark.parametrize("test_input_context", args_builds_correctly)
@pytest.mark.parametrize("test_input_repository_hosting_platform", ["GitHub", "GitLab"])
@pytest.mark.parametrize("test_input_organisational_framework", ["GDS", "N/A"])
@pytest.mark.parametrize("test_input_using_r", ["No", "Yes"])
def test_builds_correctly(
cookies,
test_input_context: Dict[str, str],
test_input_repository_hosting_platform: str,
test_input_organisational_framework: str,
test_input_using_r: str,
) -> None:
"""Test that the projects are built correctly with no errors."""

Expand All @@ -118,7 +109,6 @@ def test_builds_correctly(
**test_input_context,
"repository_hosting_platform": test_input_repository_hosting_platform,
"organisational_framework": test_input_organisational_framework,
"using_R": test_input_using_r,
}
)

Expand Down

0 comments on commit 600c7e4

Please sign in to comment.