Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /sustainability-software-lab_ca-biositing /tests /test_namespace_imports.py
| """Test namespace package imports.""" | |
| from __future__ import annotations | |
| def test_datamodels_import(): | |
| """Test that datamodels package can be imported.""" | |
| from ca_biositing import datamodels | |
| assert isinstance(datamodels.__version__, str) | |
| assert datamodels.__version__ | |
| def test_pipeline_import(): | |
| """Test that pipeline package can be imported.""" | |
| from ca_biositing import pipeline | |
| assert isinstance(pipeline.__version__, str) | |
| assert pipeline.__version__ | |
| def test_model_imports(): | |
| """Test that models can be imported from datamodels.""" | |
| from ca_biositing.datamodels.models import FieldSample, PrimaryAgProduct | |
| from ca_biositing.datamodels.models import AnalysisType | |
| assert FieldSample.__tablename__ == "field_sample" | |
| assert PrimaryAgProduct.__tablename__ == "primary_ag_product" | |
| assert AnalysisType.__tablename__ == "analysis_type" | |
| def test_database_import(): | |
| """Test that database module can be imported.""" | |
| from ca_biositing.datamodels import database | |
| assert hasattr(database, 'get_engine') | |
| assert hasattr(database, 'get_session') | |
| def test_pipeline_flows_import(): | |
| """Test that pipeline flows can be imported.""" | |
| from ca_biositing.pipeline.flows.primary_ag_product import primary_ag_product_flow | |
| from ca_biositing.pipeline.flows.analysis_type import analysis_type_flow | |
| assert callable(primary_ag_product_flow) | |
| assert callable(analysis_type_flow) | |
Xet Storage Details
- Size:
- 1.45 kB
- Xet hash:
- a871b9036add19a67f7902f13999ec9d600b5ff8922bdb208ccea7aa9d028eef
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.