Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Dec 20, 2021
1 parent 33a9554 commit 803f97c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/integration/metadata/test_populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def create_screen(self, row_count, col_count):
for well in plate.listChildren():
for field_index, ws in enumerate(well.listChildren()):
img = ws.getImage()._obj
img.name = rstring(f'{ well.getWellPos() }_Field-{field_index}')
img.name = rstring(
f'{ well.getWellPos() }_Field-{field_index}')
img = update.saveAndReturnObject(img)
images_by_id[img.id.val] = img
plate1 = self.set_name(plate1, "P001")
Expand Down Expand Up @@ -235,8 +236,10 @@ def __init__(self):
self.col_count = 2
self.csv = self.create_csv(
col_names="Plate,Well,Image Name,Well Type,Concentration",
row_data=("P001,A1,A1_Field-0,Control,0", "P001,A2,A2_Field-0,Treatment,10",
"P002,A1,A1_Field-0,Control,0", "P002,A2,A2_Field-0,Treatment,10"))
row_data=("P001,A1,A1_Field-0,Control,0",
"P001,A2,A2_Field-0,Treatment,10",
"P002,A1,A1_Field-0,Control,0",
"P002,A2,A2_Field-0,Treatment,10"))
self.screen = None

def assert_row_count(self, rows):
Expand All @@ -247,7 +250,8 @@ def assert_row_count(self, rows):

def assert_columns(self, columns):
# Adds Plate Name,Well Name, Image columns
col_names = "Plate,Well,Image Name,Well Type,Concentration,Plate Name,Well Name,Image"
col_names = ("Plate,Well,Image Name,Well Type,"
"Concentration,Plate Name,Well Name,Image")
assert col_names == ",".join([c.name for c in columns])

def assert_table_row(self, row_values, row_index):
Expand Down

0 comments on commit 803f97c

Please sign in to comment.