forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test_galaxy_mapping to respect constraint
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
get_object_session, | ||
) | ||
from galaxy.model.security import GalaxyRBACAgent | ||
from galaxy.model.unittest_utils.utils import random_email | ||
from galaxy.objectstore import QuotaSourceMap | ||
from galaxy.util.unittest import TestCase | ||
|
||
|
@@ -78,7 +79,7 @@ def expunge(cls): | |
class TestMappings(BaseModelTestCase): | ||
|
||
def test_dataset_instance_order(self) -> None: | ||
u = model.User(email="[email protected]", password="password") | ||
u = model.User(email=random_email(), password="password") | ||
h1 = model.History(name="History 1", user=u) | ||
elements = [] | ||
list_pair = model.DatasetCollection(collection_type="list:paired") | ||
|
@@ -213,7 +214,7 @@ def test_nested_collection_attributes(self): | |
assert c4.dataset_elements == [dce1, dce2] | ||
|
||
def test_history_audit(self): | ||
u = model.User(email="[email protected]", password="password") | ||
u = model.User(email=random_email(), password="password") | ||
h1 = model.History(name="HistoryAuditHistory", user=u) | ||
h2 = model.History(name="HistoryAuditHistory", user=u) | ||
|
||
|
@@ -272,7 +273,7 @@ def test_flush_refreshes(self): | |
# states and flushing in SQL Alchemy is very subtle and it is good to have a executable | ||
# reference for how it behaves in the context of Galaxy objects. | ||
model = self.model | ||
user = model.User(email="[email protected]", password="password") | ||
user = model.User(email=random_email(), password="password") | ||
galaxy_session = model.GalaxySession() | ||
galaxy_session_other = model.GalaxySession() | ||
galaxy_session.user = user | ||
|
@@ -345,7 +346,7 @@ def test_flush_refreshes(self): | |
assert "id" not in inspect(galaxy_model_object_new).unloaded | ||
|
||
def test_workflows(self): | ||
user = model.User(email="[email protected]", password="password") | ||
user = model.User(email=random_email(), password="password") | ||
|
||
child_workflow = _workflow_from_steps(user, []) | ||
self.persist(child_workflow) | ||
|