tests.model package

Submodules

tests.model.test_base_component module

tests.model.test_base_facility module

tests.model.test_base_priority_rule module

tests.model.test_base_product module

Tests for BaseProduct.

This module contains unit tests for the BaseProduct class and related functionality.

tests.model.test_base_product.fixture_dummy_product_for_extracting()[source]

Fixture for a dummy BaseProduct for extracting tests.

Returns:

A dummy product instance with several components.

Return type:

BaseProduct

tests.model.test_base_product.test_create_component()[source]

Test creating a component from a product.

tests.model.test_base_product.test_create_data_for_gantt_plotly()[source]

Test creating data for Gantt chart using Plotly.

tests.model.test_base_product.test_create_gantt_plotly(tmpdir)[source]

Test creating a Gantt chart using Plotly.

Parameters:

tmpdir – Temporary directory provided by pytest.

tests.model.test_base_product.test_draw_networkx(tmpdir)[source]

Test drawing a NetworkX graph.

Parameters:

tmpdir – Temporary directory provided by pytest.

tests.model.test_base_product.test_draw_plotly_network(tmpdir)[source]

Test drawing a Plotly network.

Parameters:

tmpdir – Temporary directory provided by pytest.

tests.model.test_base_product.test_extract_finished_component_set(dummy_product_for_extracting)[source]

Test extracting components in FINISHED state.

Parameters:

dummy_product_for_extracting (BaseProduct) – The dummy product fixture.

tests.model.test_base_product.test_extract_none_component_set(dummy_product_for_extracting)[source]

Test extracting components in NONE state.

Parameters:

dummy_product_for_extracting (BaseProduct) – The dummy product fixture.

tests.model.test_base_product.test_extract_ready_component_set(dummy_product_for_extracting)[source]

Test extracting components in READY state.

Parameters:

dummy_product_for_extracting (BaseProduct) – The dummy product fixture.

tests.model.test_base_product.test_extract_working_component_set(dummy_product_for_extracting)[source]

Test extracting components in WORKING state.

Parameters:

dummy_product_for_extracting (BaseProduct) – The dummy product fixture.

tests.model.test_base_product.test_get_networkx_graph()[source]

Test getting a NetworkX graph from BaseProduct.

tests.model.test_base_product.test_get_node_and_edge_trace_for_plotly_network()[source]

Test getting node and edge traces for Plotly network.

tests.model.test_base_product.test_init()[source]

Test initialization of BaseProduct.

tests.model.test_base_product.test_initialize()[source]

Test initialization/reset of BaseProduct.

tests.model.test_base_product.test_plot_simple_gantt(tmpdir)[source]

Test plotting a simple Gantt chart.

Parameters:

tmpdir – Temporary directory provided by pytest.

tests.model.test_base_product.test_print_mermaid_diagram(dummy_product_for_extracting)[source]

Test printing Mermaid diagrams.

Parameters:

dummy_product_for_extracting (BaseProduct) – The dummy product fixture.

tests.model.test_base_product.test_remove_insert_absence_time_list()[source]

Test removing and inserting absence time list for BaseProduct.

tests.model.test_base_product.test_str()[source]

Test string representation of BaseProduct.

tests.model.test_base_project module

tests.model.test_base_subproject_task module

tests.model.test_base_task module

tests.model.test_base_team module

tests.model.test_base_worker module

tests.model.test_base_workflow module

tests.model.test_base_workplace module

Module contents

__init__.