Skip to content

Commit e2685b5

Browse files
authored
Merge pull request #54 from CardiacModelling/test-tweaks
Tweaks to tests
2 parents 0c11a4e + 0f8b92a commit e2685b5

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ ignore =
1616
exclude=
1717
.git,
1818
venv,
19+
tests/test_data,

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
python-version: [3.7 ,3.8, 3.9, '3.10', 3.11]
9+
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
1010
steps:
1111
- name: Checkout repository and submodules
1212
uses: actions/checkout@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/tests/test_data
2+
/test_output
23
*.pyc
34
*.DS_Store
45
*__pycache__*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To get a local copy up and running follow these simple example steps.
5656

5757
### Prerequisites
5858

59-
This package has been tested on Ubuntu with Python 3.7, 3.8, 3.9, 3.10 and 3.11.
59+
This package has been tested on Ubuntu with Python 3.8, 3.9, 3.10, 3.11 and 3.12.
6060

6161
### Installation
6262

tests/test_leak_correct.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ def setUp(self):
2828

2929
def test_get_QC_dict(self):
3030
QC = self.test_trace.get_onboard_QC_values()
31-
return leak_correct.get_QC_dict(QC)
31+
d = leak_correct.get_QC_dict(QC)
32+
self.assertIsInstance(d, dict)
3233

3334
def test_plot_leak_fit(self):
3435
well = 'A01'
@@ -53,7 +54,8 @@ def test_get_leak_correct(self):
5354
times = trace.get_times()
5455

5556
current = currents[well][sweep, :]
56-
return leak_correct.get_leak_corrected(current, voltage, times, *self.ramp_bounds)
57+
x = leak_correct.get_leak_corrected(current, voltage, times, *self.ramp_bounds)
58+
self.assertEqual(x.shape, (30784,))
5759

5860

5961
if __name__ == "__main__":

0 commit comments

Comments
 (0)