Skip to content

Commit

Permalink
Loot solver v2 (#82)
Browse files Browse the repository at this point in the history
* updated test for new solver algorithm

* wip new algorithm

* arcadion savage test is passing

* finalised moving old tests to new algorithm

* add test for handling when loot is needed by fewer than existing people

* if someone has multiple unique items, all of them should be added to the list since they're unique

* fixed loot solver issue

* linting

* fixing some broken tests
  • Loading branch information
freyamade authored Aug 8, 2024
1 parent 87ecdb1 commit 014f66c
Show file tree
Hide file tree
Showing 4 changed files with 654 additions and 67 deletions.
5 changes: 3 additions & 2 deletions backend/api/tests/test_lodestone_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class LodestoneScraper(SavageAimTestCase):
"""
Test that the Lodestone Scraper returns what is expected for its various methods
"""
maxDiff = None

def test_token_check(self):
"""
Expand Down Expand Up @@ -79,13 +80,13 @@ def test_get_current_gear(self):
'hands': 'Koga Tekko',
'legs': 'Augmented Ironworks Brais of Scouting',
'feet': 'Koga Kyahan',
'earrings': 'Menphina\'s Earring',
'earrings': 'Azeyma\'s Earrings',
'necklace': 'Aetherial Brass Gorget',
'bracelet': 'Dawn Wristguards',
'right_ring': 'Brand-new Ring',
'left_ring': 'Weathered Ring',
},
'max_il': 430,
'max_il': 560,
'min_il': 5,
}
data = SCRAPER.get_current_gear(ALT_CHAR_ID, 'NIN')
Expand Down
Loading

0 comments on commit 014f66c

Please sign in to comment.