Skip to content

Commit 9332ae0

Browse files
committed
Fixing more flake8 issues.
1 parent cb5f151 commit 9332ae0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_constructors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def test_create_fieldset(use_3D, use_biofouling, use_stokes, use_wind, use_mixin
6363

6464
assert isinstance(fieldset, parcels.FieldSet)
6565

66+
6667
# Test the base create_particleset() function
6768
@pytest.mark.parametrize('plastic_amount', [None, 1])
6869
def test_create_particleset(plastic_amount):
@@ -74,7 +75,7 @@ def test_create_particleset(plastic_amount):
7475

7576
settings['plastictype'] = make_standard_plastictype_settings()
7677

77-
if 'plastic_amount' is None:
78+
if 'plastic_amount' == None:
7879
release_locations = {'lons': [18], 'lats': [35]}
7980
else:
8081
release_locations = {'lons': [18], 'lats': [35], 'plastic_amount': [plastic_amount]}
@@ -84,6 +85,7 @@ def test_create_particleset(plastic_amount):
8485

8586
assert isinstance(pset, parcels.ParticleSet)
8687

88+
8789
# Test three different initialisation maps
8890
@pytest.mark.parametrize('initialisation_map', ['coastal', 'fisheries', 'rivers'])
8991
def test_create_particleset_from_map(initialisation_map):

0 commit comments

Comments
 (0)