Skip to content

Commit

Permalink
Add explicit checks in classification calculation tests for English L…
Browse files Browse the repository at this point in the history
…ongbow.
  • Loading branch information
jatkinson1000 committed Oct 30, 2024
1 parent 47ff55a commit 7efb297
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
12 changes: 12 additions & 0 deletions archeryutils/classifications/tests/test_agb_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ def test_agb_field_classification_scores_genders(
"longbow",
[201, 188, 171, 155, 137, 121],
),
(
"wa_field_24_blue_marked",
"english longbow",
[201, 188, 171, 155, 137, 121],
),
],
)
def test_agb_field_classification_scores_bowstyles(
Expand Down Expand Up @@ -261,6 +266,13 @@ class TestCalculateAgbFieldClassification:
"longbow",
"unclassified",
),
(
"wa_field_24_blue_marked",
1,
"Under 12",
"english longbow",
"unclassified",
),
],
)
def test_calculate_agb_field_classification(
Expand Down
6 changes: 5 additions & 1 deletion archeryutils/classifications/tests/test_agb_indoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ def test_agb_indoor_classification_scores_genders(
"longbow",
[127, 178, 240, 306, 369, 423, 466, 501],
),
(
"english longbow",
[127, 178, 240, 306, 369, 423, 466, 501],
),
],
)
def test_agb_indoor_classification_scores_bowstyles(
Expand Down Expand Up @@ -333,7 +337,7 @@ class TestCalculateAgbIndoorClassification:
(
1,
"Under 12",
"longbow",
"english longbow",
"UC",
),
],
Expand Down
13 changes: 13 additions & 0 deletions archeryutils/classifications/tests/test_agb_outdoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ def test_agb_outdoor_classification_scores_genders(
"female",
[64, 94, 136, 195, 274, 373, 493, 625, 761],
),
(
"wa1440_70",
"english longbow",
"female",
[64, 94, 136, 195, 274, 373, 493, 625, 761],
),
],
)
def test_agb_outdoor_classification_scores_bowstyles(
Expand Down Expand Up @@ -386,6 +392,13 @@ class TestCalculateAgbOutdoorClassification:
"longbow",
"UC",
),
(
"metric_v",
250,
"Under 12",
"longbow",
"A1",
),
],
)
def test_calculate_agb_outdoor_classification(
Expand Down

0 comments on commit 7efb297

Please sign in to comment.