Esempio n. 1
0
def test_conjured_day_one():

    conjured_item = Conjured('Conjured Item', 1, 20)

    conjured_item.update_quality()

    assert conjured_item.get_sell_in() == 0
    assert conjured_item.get_quality() == 18
Esempio n. 2
0
def test_conjured_day_two():

    conjured_item = Conjured('Conjured Item', 2, 22)

    conjured_item.update_quality()

    assert conjured_item.get_sell_in() == 1
    assert conjured_item.get_quality() == 20
Esempio n. 3
0
def test_conjured_day_three():

    conjured_item = Conjured('Conjured Item', 3, 24)

    conjured_item.update_quality()

    assert conjured_item.get_sell_in() == 2
    assert conjured_item.get_quality() == 22
Esempio n. 4
0
def test_conjured_day_four():

    conjured_item = Conjured('Conjured Item', 4, 26)

    conjured_item.update_quality()

    assert conjured_item.get_sell_in() == 3
    assert conjured_item.get_quality() == 24
Esempio n. 5
0
def test_conjured_day_five():

    conjured_item = Conjured('Conjured Item', 5, 28)

    conjured_item.update_quality()

    assert conjured_item.get_sell_in() == 4
    assert conjured_item.get_quality() == 26
Esempio n. 6
0
def test_conjured_day_six():

    conjured_item = Conjured('Conjured Item', 6, 30)

    conjured_item.update_quality()

    assert conjured_item.get_sell_in() == 5
    assert conjured_item.get_quality() == 28
Esempio n. 7
0
def test_conjured_no_sell_in():

    conjured_item = Conjured('Conjured Item', 0, 18)

    conjured_item.update_quality()

    assert conjured_item.get_sell_in() == -1
    assert conjured_item.get_quality() == 16

    conjured_item_two = Conjured('Conjured Item', -1, 16)

    conjured_item_two.update_quality()

    assert conjured_item_two.get_sell_in() == -2
    assert conjured_item_two.get_quality() == 12

    conjured_item_three = Conjured('Conjured Item', -2, 12)

    conjured_item_three.update_quality()

    assert conjured_item_three.get_sell_in() == -3
    assert conjured_item_three.get_quality() == 8

    conjured_item_four = Conjured('Conjured Item', -3, 8)

    conjured_item_four.update_quality()

    assert conjured_item_four.get_sell_in() == -4
    assert conjured_item_four.get_quality() == 4

    conjured_item_five = Conjured('Conjured Item', -4, 4)

    conjured_item_five.update_quality()

    assert conjured_item_five.get_sell_in() == -5
    assert conjured_item_five.get_quality() == 0