Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelduchesne committed Sep 28, 2024
1 parent ef13ff9 commit a777fff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ check: ## Run code quality tools.
.PHONY: test
test: ## Test the code with pytest
@echo "🚀 Testing code: Running pytest"
@poetry run pytest tests --cov --cov-config=pyproject.toml --cov-report=xml
@poetry run pytest -n auto tests --cov --cov-config=pyproject.toml --cov-report=xml

.PHONY: build
build: clean-build ## Build wheel file using poetry
Expand Down
9 changes: 0 additions & 9 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import glob
import os
import sys
from pathlib import Path
Expand Down Expand Up @@ -30,14 +29,6 @@ def scratch_then_cache(request):
d.rmtree_p()


samples_ = ["regular", "umi_samples"] # ['problematic', 'regular', 'umi_samples']


@pytest.fixture(params=samples_, ids=samples_, scope="session")
def idf_source(request):
return glob.glob(f"tests/input_data/{request.param}/*.idf")


@pytest.fixture(scope="session")
def config():
utils.config(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_replace(self):


def schedules_idf():
config(cache_folder=os.getenv("ARCHETYPAL_CACHE") or data_dir / ".temp/cache")
config(cache_folder=os.getenv("ARCHETYPAL_CACHE") or data_dir / "../.temp/cache")
idf = IDF(
idf_file,
epw=data_dir / "CAN_PQ_Montreal.Intl.AP.716270_CWEC.epw",
Expand Down

0 comments on commit a777fff

Please sign in to comment.