From 8227222ef283c2d6f98c0c22c3a71ea22fd848cd Mon Sep 17 00:00:00 2001 From: Will Usher Date: Thu, 19 Oct 2023 13:06:20 +0200 Subject: [PATCH] Got the test to run --- README.md | 4 ++++ tests/test_results.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c33806..abe6d08 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ Run the tests: hatch run test +Run linting for style, typing and format: + + hatch run lint:al + The version number is taken from the git tag. Before building and publishing the package, you should create a new annotated tag. First, check the previous tags: diff --git a/tests/test_results.py b/tests/test_results.py index f007f5b..be7c27c 100644 --- a/tests/test_results.py +++ b/tests/test_results.py @@ -1,6 +1,6 @@ import pandas as pd import os -import results_to_next_step as rtns +from osemosys_step import results_to_next_step as rtns class TestResultsTransfer: @@ -11,7 +11,7 @@ def test_sum_rescap_newcap(self): res_path = os.path.join(folder, 'results') res_cap = pd.read_csv(os.path.join(dp_path, 'ResidualCapacity.csv')) - + data = [ ['TEST','TECA',0,1.5], ['TEST','TECB',0,1],