Files
mcpacker/tungston/core/altitude_test.py
T

19 lines
462 B
Python

from pytest import fixture
import tungston.core.altitude as A
# Fixtures #########################################################################################
@fixture(name="merged")
def mergeRange():
yield A.span(A.UPLANDS, A.LOWLANDS)
# Tests ############################################################################################
def test_span(merged):
assert merged.bottom == A.LOWLANDS.bottom
assert merged.top == A.UPLANDS.top