Skip to content

Commit

Permalink
test: add tests to get capacity colours
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmonstrox committed Feb 6, 2024
1 parent 79d877b commit bcff856
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 24 additions & 4 deletions tests/skills/getCapacity/test_getCapacity.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,31 @@ def test_should_return_None_when_capacity_label_is_not_visible():
assert skills.getCapacity() is None


def test_should_return_327():
skills = loadSkillsByImage('capacityWith327.png')
def test_should_return_327_when_gray_color():
skills = loadSkillsByImage('capacityWith327AndGrayColor.png')
assert skills.getCapacity() == 327


def test_should_return_318_218():
skills = loadSkillsByImage('capacityWith318218.png')
def test_should_return_327_when_green_color():
skills = loadSkillsByImage('capacityWith327AndGreenColor.png')
assert skills.getCapacity() == 327


def test_should_return_327_when_orange_color():
skills = loadSkillsByImage('capacityWith327AndOrangeColor.png')
assert skills.getCapacity() == 327


def test_should_return_318_218_when_gray_color():
skills = loadSkillsByImage('capacityWith318218AndGrayColor.png')
assert skills.getCapacity() == 318_218


def test_should_return_318_218_when_green_color():
skills = loadSkillsByImage('capacityWith318218AndGreenColor.png')
assert skills.getCapacity() == 318_218


def test_should_return_318_218_when_orange_color():
skills = loadSkillsByImage('capacityWith318218AndOrangeColor.png')
assert skills.getCapacity() == 318_218

0 comments on commit bcff856

Please sign in to comment.