Skip to content

Commit

Permalink
fix(tests): rm import
Browse files Browse the repository at this point in the history
  • Loading branch information
breakthewall committed Feb 15, 2024
1 parent f2c7650 commit 72885cc
Showing 1 changed file with 6 additions and 43 deletions.
49 changes: 6 additions & 43 deletions tests/test_plates_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
init_plate,
dst_plate_generator,
src_plate_generator,
extract_dead_volumes,
split
extract_dead_volumes
)
from icfree.plates_generator.args import DEFAULT_ARGS
from icfree.plates_generator.__main__ import input_importer
Expand Down Expand Up @@ -111,7 +110,7 @@ def test_src_plate_generator(self):
)

# Generate source plates
source_plates, _ = src_plate_generator(
source_plates = src_plate_generator(
dest_plates=dest_plates,
plate_dead_volume=15000,
well_capacity=60000,
Expand Down Expand Up @@ -149,7 +148,7 @@ def test_src_plate_generator_wOptVol(self):
)

# Generate source plates
source_plates, _ = src_plate_generator(
source_plates = src_plate_generator(
dest_plates=dest_plates,
plate_dead_volume=15000,
well_capacity=60000,
Expand Down Expand Up @@ -188,7 +187,7 @@ def test_src_plate_generator_outOfPlate(self):
)

# Generate source plates
source_plates, _ = src_plate_generator(
source_plates = src_plate_generator(
dest_plates=dest_plates,
plate_dead_volume=15000,
well_capacity=60000,
Expand Down Expand Up @@ -229,7 +228,7 @@ def test_src_plate_generator_WithNullVolume(self):
)

# Generate source plates
source_plates, _ = src_plate_generator(
source_plates = src_plate_generator(
dest_plates=dest_plates,
plate_dead_volume=15000,
well_capacity=60000,
Expand Down Expand Up @@ -282,42 +281,6 @@ def test_dst_plate_generator_OutOfPlate(self):
self.assertEqual(dest_plates[0], expected_plate_1)
self.assertEqual(dest_plates[1], expected_plate_2)

def test_volume_below_minimum(self):
self.assertEqual(
split(vol=10, max=1000, min=20),
{'nb_bins': 0, 'remainder': 10}
)

def test_volume_within_max(self):
self.assertEqual(
split(vol=750, max=1000, min=20),
{'nb_bins': 0, 'remainder': 750}
)

def test_volume_exceeds_max_once(self):
self.assertEqual(
split(vol=1750, max=1000, min=20),
{'nb_bins': 1, 'remainder': 750}
)

def test_volume_exceeds_max_with_small_remainder(self):
self.assertEqual(
split(vol=1020, max=1000, min=20),
{'nb_bins': 1, 'remainder': 20}
)

def test_volume_double_max(self):
self.assertEqual(
split(vol=2000, max=1000, min=20),
{'nb_bins': 2, 'remainder': 0}
)

def test_volume_double_max_with_remainder(self):
self.assertEqual(
split(vol=2040, max=1000, min=20),
{'nb_bins': 2, 'remainder': 40}
)


class TestPlate(TestCase):

Expand Down Expand Up @@ -721,5 +684,5 @@ def test_get_max_volume_miss_comp(self):
)
self.assertEqual(
plate.get_max_volume('FOO'),
93.75
None
)

0 comments on commit 72885cc

Please sign in to comment.