Now the various objects attributes are derived directly from the data with which they're initialized.

This commit is contained in:
Jason R. Coombs
2016-09-03 14:21:06 -04:00
parent 6abccdc728
commit 9be618cd8c
2 changed files with 60 additions and 34 deletions
+3 -1
View File
@@ -65,9 +65,11 @@ def test_properties(temp_result):
assert len(info) == len(pods) + len(warnings) + len(assumptions)
def test_pod_position_is_float(temp_result):
def test_pod_attributes(temp_result):
pod = next(temp_result.pods)
assert isinstance(pod.position, float)
assert isinstance(pod.id, str)
assert isinstance(pod.subpod[0].img[0].height, int)
def test_invalid_app_id():