|
|
|
@ -79,8 +79,8 @@ def test_project_overview_available_property(example_budget_data):
@@ -79,8 +79,8 @@ def test_project_overview_available_property(example_budget_data):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_create_overview_map(budget_example_file): |
|
|
|
|
from superx_budget.overview import _create_overview_map |
|
|
|
|
from superx_budget.budget import parse_budget_file |
|
|
|
|
from superx_budget.overview import _create_overview_map |
|
|
|
|
|
|
|
|
|
budget_data = parse_budget_file(budget_example_file) |
|
|
|
|
result = _create_overview_map(budget_data) |
|
|
|
@ -92,12 +92,12 @@ def test_create_overview_map(budget_example_file):
@@ -92,12 +92,12 @@ def test_create_overview_map(budget_example_file):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_create_entries_from_export(budget_example_file, superx_example_file): |
|
|
|
|
from superx_budget.budget import parse_budget_file |
|
|
|
|
from superx_budget.superx import parse_exported_file |
|
|
|
|
from superx_budget.overview import ( |
|
|
|
|
_create_entries_from_superx, |
|
|
|
|
_create_overview_map, |
|
|
|
|
_create_entries_from_superx, |
|
|
|
|
) |
|
|
|
|
from superx_budget.budget import parse_budget_file |
|
|
|
|
from superx_budget.superx import parse_exported_file |
|
|
|
|
|
|
|
|
|
superx_data = parse_exported_file(superx_example_file) |
|
|
|
|
budget_data = parse_budget_file(budget_example_file) |
|
|
|
@ -109,11 +109,11 @@ def test_create_entries_from_export(budget_example_file, superx_example_file):
@@ -109,11 +109,11 @@ def test_create_entries_from_export(budget_example_file, superx_example_file):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_filter_superx_material_expenses(superx_example_file): |
|
|
|
|
from superx_budget.superx import parse_exported_file |
|
|
|
|
from superx_budget.overview import ( |
|
|
|
|
_filter_superx_material_expenses, |
|
|
|
|
VALID_MATERIAL_IDS, |
|
|
|
|
_filter_superx_material_expenses, |
|
|
|
|
) |
|
|
|
|
from superx_budget.superx import parse_exported_file |
|
|
|
|
|
|
|
|
|
superx_data = parse_exported_file(superx_example_file) |
|
|
|
|
result = list(_filter_superx_material_expenses(superx_data)) |
|
|
|
@ -124,9 +124,9 @@ def test_filter_superx_material_expenses(superx_example_file):
@@ -124,9 +124,9 @@ def test_filter_superx_material_expenses(superx_example_file):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_create_overview(budget_example_file, superx_example_file): |
|
|
|
|
from superx_budget.overview import create_overview |
|
|
|
|
from superx_budget.budget import parse_budget_file |
|
|
|
|
from superx_budget.superx import parse_exported_file |
|
|
|
|
from superx_budget.overview import create_overview |
|
|
|
|
|
|
|
|
|
superx_data = parse_exported_file(superx_example_file) |
|
|
|
|
budget_data = parse_budget_file(budget_example_file) |
|
|
|
|