mirror of
https://github.com/arcan1s/ffxivbis.git
synced 2025-07-27 20:49:56 +00:00
initial commit
This commit is contained in:
13
test/test_piece.py
Normal file
13
test/test_piece.py
Normal file
@ -0,0 +1,13 @@
|
||||
from service.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
|
Reference in New Issue
Block a user