-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and add test for missing skills in careers
- Loading branch information
Showing
3 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import pytest | ||
|
||
from wfrp.character.data.careers import CAREER_DATA | ||
from wfrp.character.data.skills import SKILL_DATA | ||
|
||
|
||
@pytest.mark.data | ||
def test_skill_characteristics(): | ||
for skill in SKILL_DATA: | ||
assert SKILL_DATA[skill]["characteristic"] | ||
|
||
|
||
@pytest.mark.data | ||
def test_skill(): | ||
missing = [] | ||
for career_data in CAREER_DATA: | ||
for career in CAREER_DATA[career_data]: | ||
if career == "class": | ||
continue | ||
for skill in CAREER_DATA[career_data][career]["skills"]: | ||
skill = skill.split(" (")[0] | ||
if skill not in SKILL_DATA: | ||
missing.append(skill) | ||
assert not missing, sorted(missing) |