17 lines
479 B
Python
17 lines
479 B
Python
from pytest import fixture
|
|
|
|
import tungston.core.season as season
|
|
|
|
|
|
# Fixtures #########################################################################################
|
|
|
|
@fixture(name="notSummer")
|
|
def createNotSummerList():
|
|
yield season.excluding(season.SUMMER)
|
|
|
|
|
|
# Tests ############################################################################################
|
|
|
|
def test_excluding(notSummer):
|
|
assert ", ".join([str(s) for s in notSummer]) == "spring, autumn, winter"
|