Feat: add tests
This commit is contained in:
parent
9118feb4c6
commit
d4428187d1
@ -1,39 +0,0 @@
|
|||||||
from pathlib import Path
|
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
from plesna.dataplatform import DataPlateform
|
|
||||||
from plesna.datastore.fs_datacatalogue import FSDataCatalogue
|
|
||||||
|
|
||||||
FIXTURE_DIR = Path(__file__).parent / Path("raw_data")
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def raw_catalogue(tmp_path):
|
|
||||||
raw_path = Path(tmp_path) / "raw"
|
|
||||||
return FSDataCatalogue(raw_path)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def bronze_catalogue(tmp_path):
|
|
||||||
bronze_path = Path(tmp_path) / "bronze"
|
|
||||||
return FSDataCatalogue(bronze_path)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def silver_catalogue(tmp_path):
|
|
||||||
silver_path = Path(tmp_path) / "silver"
|
|
||||||
return FSDataCatalogue(silver_path)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def dataplateform(
|
|
||||||
raw_catalogue: FSDataCatalogue,
|
|
||||||
bronze_catalogue: FSDataCatalogue,
|
|
||||||
silver_catalogue: FSDataCatalogue,
|
|
||||||
):
|
|
||||||
dp = DataPlateform()
|
|
||||||
dp.add_datacatalague("raw", raw_catalogue)
|
|
||||||
dp.add_datacatalague("bronze", bronze_catalogue)
|
|
||||||
dp.add_datacatalague("silver", silver_catalogue)
|
|
||||||
pass
|
|
Loading…
Reference in New Issue
Block a user