Skip to content

Commit

Permalink
fix a wrong search and replace
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Jul 30, 2023
1 parent 7c43ef1 commit d36696d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/unit/app/tools/test_parameter_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def test_InRangeValidator(self):
def test_DatasetOkValidator(self):

sa_session = self.app.model.context
hisHistory()
hist = History()
with sa_session.begin():
sa_session.add(hist)
ok_hda = hist.add_dataset(
Expand Down Expand Up @@ -254,14 +254,14 @@ def test_DatasetOkValidator(self):

def test_DatasetEmptyValidator(self):
sa_session = self.app.model.context
hisHistory()
hist = History()
with sa_session.begin():
sa_session.add(hist)
empty_dataseDataset(external_filename=get_test_fname("empty.txt"))
empty_dataset = Dataset(external_filename=get_test_fname("empty.txt"))
empty_hda = hist.add_dataset(
HistoryDatasetAssociation(id=1, extension="interval", dataset=empty_dataset, sa_session=sa_session)
)
full_dataseDataset(external_filename=get_test_fname("1.json"))
full_dataset = Dataset(external_filename=get_test_fname("1.json"))
full_hda = hist.add_dataset(
HistoryDatasetAssociation(id=2, extension="interval", dataset=full_dataset, sa_session=sa_session)
)
Expand Down Expand Up @@ -292,7 +292,7 @@ def test_DatasetEmptyValidator(self):

def test_DatasetExtraFilesPathEmptyValidator(self):
sa_session = self.app.model.context
hisHistory()
hist = History()
with sa_session.begin():
sa_session.add(hist)
has_extra_hda = hist.add_dataset(
Expand Down Expand Up @@ -335,7 +335,7 @@ def test_DatasetExtraFilesPathEmptyValidator(self):

def test_MetadataValidator(self):
sa_session = self.app.model.context
hisHistory()
hist = History()
with sa_session.begin():
sa_session.add(hist)
hda = hist.add_dataset(
Expand Down Expand Up @@ -401,7 +401,7 @@ def test_MetadataValidator(self):

def test_UnspecifiedBuildValidator(self):
sa_session = self.app.model.context
hisHistory()
hist = History()
with sa_session.begin():
sa_session.add(hist)
has_dbkey_hda = hist.add_dataset(
Expand Down

0 comments on commit d36696d

Please sign in to comment.