Skip to content

Commit

Permalink
Merge pull request #54 from CardiacModelling/test-tweaks
Browse files Browse the repository at this point in the history
Tweaks to tests
  • Loading branch information
mirams authored Jan 17, 2025
2 parents 0c11a4e + 0f8b92a commit e2685b5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ ignore =
exclude=
.git,
venv,
tests/test_data,
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7 ,3.8, 3.9, '3.10', 3.11]
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/tests/test_data
/test_output
*.pyc
*.DS_Store
*__pycache__*
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ To get a local copy up and running follow these simple example steps.

### Prerequisites

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

### Installation

Expand Down
6 changes: 4 additions & 2 deletions tests/test_leak_correct.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def setUp(self):

def test_get_QC_dict(self):
QC = self.test_trace.get_onboard_QC_values()
return leak_correct.get_QC_dict(QC)
d = leak_correct.get_QC_dict(QC)
self.assertIsInstance(d, dict)

def test_plot_leak_fit(self):
well = 'A01'
Expand All @@ -53,7 +54,8 @@ def test_get_leak_correct(self):
times = trace.get_times()

current = currents[well][sweep, :]
return leak_correct.get_leak_corrected(current, voltage, times, *self.ramp_bounds)
x = leak_correct.get_leak_corrected(current, voltage, times, *self.ramp_bounds)
self.assertEqual(x.shape, (30784,))


if __name__ == "__main__":
Expand Down

0 comments on commit e2685b5

Please sign in to comment.