fix tests

This commit is contained in:
Evgenii Alekseev 2019-09-11 02:57:35 +03:00
parent 7de6a5fcc9
commit 000457a77e
2 changed files with 5 additions and 2 deletions

View File

@ -65,6 +65,9 @@ def config() -> Configuration:
'request_timeout': 1, 'request_timeout': 1,
'xivapi_url': 'https://xivapi.com' 'xivapi_url': 'https://xivapi.com'
}, },
'auth': {
'enabled': 'no'
},
'settings': { 'settings': {
'include': '/dev/null' 'include': '/dev/null'
} }

View File

@ -21,8 +21,8 @@ def test_loot_count_bis(player: Player, head_with_upgrade: Piece, weapon: Piece)
player.bis.set_item(head_with_upgrade) player.bis.set_item(head_with_upgrade)
player.loot.append(head_with_upgrade) player.loot.append(head_with_upgrade)
assert abs(player.loot_count_total_bis(head_with_upgrade)) == 1 assert abs(player.loot_count_total_bis(head_with_upgrade)) == 0
assert abs(player.loot_count_total_bis(weapon)) == 1 assert abs(player.loot_count_total_bis(weapon)) == 0
player.bis.set_item(weapon) player.bis.set_item(weapon)
assert abs(player.loot_count_total_bis(head_with_upgrade)) == 1 assert abs(player.loot_count_total_bis(head_with_upgrade)) == 1