mirror of
https://github.com/arcan1s/ffxivbis.git
synced 2025-08-16 22:29:56 +00:00
initial commit
This commit is contained in:
20
test/test_bis.py
Normal file
20
test/test_bis.py
Normal file
@ -0,0 +1,20 @@
|
||||
from service.models.bis import BiS
|
||||
from service.models.piece import Piece
|
||||
from service.models.upgrade import Upgrade
|
||||
|
||||
|
||||
def test_set_item(bis: BiS, weapon: Piece) -> None:
|
||||
bis.set_item(weapon)
|
||||
assert bis.has_piece(weapon)
|
||||
|
||||
|
||||
def test_remove_item(bis: BiS, weapon: Piece) -> None:
|
||||
test_set_item(bis, weapon)
|
||||
bis.remove_item(weapon)
|
||||
assert not bis.has_piece(weapon)
|
||||
|
||||
|
||||
def test_upgrades_required(bis: BiS, weapon: Piece, head_with_upgrade: Piece) -> None:
|
||||
bis.set_item(weapon)
|
||||
bis.set_item(head_with_upgrade)
|
||||
assert bis.upgrades_required == {Upgrade.NoUpgrade: 1, Upgrade.GearUpgrade: 1}
|
Reference in New Issue
Block a user