Skip to content

Commit

Permalink
Removes R from injected variable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danmilne1 committed Jan 31, 2024
1 parent e1e9c49 commit 07e91a2
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/test_govcookiecutter_injected_variables.py
Expand Up @@ -44,20 +44,6 @@
'"{{ cookiecutter.project_version }}"': 2,
"{{ cookiecutter.project_version }}": 1,
}
USING_R_NO_COUNT = {
"https://github.com/lorenzwalthert/precommit": 0,
"`.lintr`": 0,
"`.Rprofile`": 0,
"`DESCRIPTION`": 0,
"`startup.R`": 0,
}
USING_R_YES_COUNT = {
"https://github.com/lorenzwalthert/precommit": 2,
"`.lintr`": 0,
"`.Rprofile`": 0,
"`DESCRIPTION`": 0,
"`startup.R`": 0,
}


def replace_cookiecutter_jinja2_counts(
Expand Down Expand Up @@ -145,45 +131,37 @@ def recursive_open_and_count_search_terms(
"organisation_handle",
"handle_2",
{**ORGANISATION_HANDLE_COUNT, '"{{ cookiecutter.organisation_handle }}",': 0},
{"using_R": "Yes"},
),
("contact_email", "email@1", CONTACT_EMAIL_COUNT, {"using_R": "No"}),
(
"contact_email",
"email@2",
{**CONTACT_EMAIL_COUNT, '"{{ cookiecutter.contact_email }}")': 0},
{"using_R": "Yes"},
),
("project_name", "Project_1", PROJECT_NAME_COUNT, {"using_R": "No"}),
(
"project_name",
"Project_2",
{**PROJECT_NAME_COUNT, "{{ cookiecutter.project_name }}": 3},
{"using_R": "Yes"},
),
("repo_name", "repo_1", REPO_NAME_COUNT, {"using_R": "No"}),
(
"repo_name",
"repo_2",
{**REPO_NAME_COUNT, "{{ cookiecutter.repo_name }}": 5},
{"using_R": "Yes"},
),
("overview", "overview_1", OVERVIEW_COUNT, {"using_R": "No"}),
(
"overview",
"overview_1",
{**OVERVIEW_COUNT, "{{ cookiecutter.overview }}": 3},
{"using_R": "Yes"},
),
("project_version", "project_version_1", PROJECT_VERSION_COUNT, {"using_R": "No"}),
(
"project_version",
"project_version_2",
{**PROJECT_VERSION_COUNT, "{{ cookiecutter.project_version }}": 2},
{"using_R": "Yes"},
),
("using_R", "No", USING_R_NO_COUNT, {}),
("using_R", "Yes", USING_R_YES_COUNT, {}),
]


Expand Down

0 comments on commit 07e91a2

Please sign in to comment.