Files
dcalc/backend/tests/unit/test_priest_female_weapons.py

28 lines
647 B
Python

from pathlib import Path
import pytest
PRIEST_FEMALE_FILES = [
"infighter_female.py",
"sorceress.py",
"inquistor.py",
"mistress.py",
]
@pytest.mark.parametrize("filename", PRIEST_FEMALE_FILES)
def test_priest_female_jobs_use_equipment_cross_weapon_name(filename):
character_file = (
Path(__file__).resolve().parents[2]
/ "core"
/ "character"
/ "GF"
/ "priest_female"
/ filename
)
source = character_file.read_text(encoding="utf-8")
assert "self.武器选项 = ['十字架', '念珠', '图腾', '镰刀', '战斧']" in source
assert "'光杖'" not in source