Skip to content

Commit

Permalink
Tweaks to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClerx committed Jan 7, 2025
1 parent e6085a6 commit a5db2d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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,
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
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 a5db2d6

Please sign in to comment.