|
|
|
@ -1,6 +1,5 @@
@@ -1,6 +1,5 @@
|
|
|
|
|
""" Stub file for testing the project """ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import pytest |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -83,9 +82,9 @@ def test_parse_data_table():
@@ -83,9 +82,9 @@ def test_parse_data_table():
|
|
|
|
|
|
|
|
|
|
assert first_value.cost_center == "A" |
|
|
|
|
assert first_value.fonds == "B" |
|
|
|
|
assert first_value.acutal_value == "J" |
|
|
|
|
assert first_value.actual_value == "J" |
|
|
|
|
assert second_value.cost_center == "q" |
|
|
|
|
assert second_value.acutal_value == "z" |
|
|
|
|
assert second_value.actual_value == "z" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_parse_export_data(superx_example_workbook): |
|
|
|
@ -102,14 +101,14 @@ def test_parse_export_data(superx_example_workbook):
@@ -102,14 +101,14 @@ def test_parse_export_data(superx_example_workbook):
|
|
|
|
|
first, last = result.data[0], result.data[-1] |
|
|
|
|
assert first.cost_center == "1110200121" |
|
|
|
|
assert first.fonds == "3310" |
|
|
|
|
assert first.project == "1100000102" |
|
|
|
|
assert first.project == "1100068704" |
|
|
|
|
assert first.kind == "1 - Personal" |
|
|
|
|
assert first.budget_year is None |
|
|
|
|
assert first.obligo == 0.01 |
|
|
|
|
assert first.expenses == 1000 |
|
|
|
|
assert first.revenue_actual == 2000 |
|
|
|
|
assert first.revenue_target == 3000 |
|
|
|
|
assert first.acutal_value == 4000 |
|
|
|
|
assert first.actual_value == 4000 |
|
|
|
|
assert last.cost_center == "1110200121" |
|
|
|
|
assert last.fonds == "1123" |
|
|
|
|
assert last.project == "8200062807" |
|
|
|
@ -119,7 +118,7 @@ def test_parse_export_data(superx_example_workbook):
@@ -119,7 +118,7 @@ def test_parse_export_data(superx_example_workbook):
|
|
|
|
|
assert last.expenses == 1236 |
|
|
|
|
assert last.revenue_actual == 2236 |
|
|
|
|
assert last.revenue_target == 3236 |
|
|
|
|
assert last.acutal_value == 4236 |
|
|
|
|
assert last.actual_value == 4236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_parse_exported_file(superx_example_file): |
|
|
|
@ -131,5 +130,5 @@ def test_parse_exported_file(superx_example_file):
@@ -131,5 +130,5 @@ def test_parse_exported_file(superx_example_file):
|
|
|
|
|
assert len(result.data) == 212 |
|
|
|
|
assert first.cost_center == "1110200121" |
|
|
|
|
assert first.fonds == "3310" |
|
|
|
|
assert first.project == "1100000102" |
|
|
|
|
assert first.project == "1100068704" |
|
|
|
|
assert first.kind == "1 - Personal" |
|
|
|
|