Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks to tests #54

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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@v1
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
Loading