mirror of
https://github.com/arcan1s/ffxivbis.git
synced 2025-04-25 09:47:18 +00:00
13 lines
462 B
Python
13 lines
462 B
Python
from ffxivbis.models.piece import Piece
|
|
|
|
|
|
def test_parse_head(head_with_upgrade: Piece) -> None:
|
|
assert Piece.get({'piece': 'head', 'is_tome': True}) == head_with_upgrade
|
|
|
|
|
|
def test_parse_weapon(weapon: Piece) -> None:
|
|
assert Piece.get({'piece': 'weapon', 'is_tome': False}) == weapon
|
|
|
|
|
|
def test_parse_upgrade(head_with_upgrade: Piece) -> None:
|
|
assert Piece.get({'piece': head_with_upgrade.upgrade.name, 'is_tome': True}) == head_with_upgrade.upgrade |