##// END OF EJS Templates
tests: try to stabilize integration tests.
dan -
r3986:9eaff08c default
parent child Browse files
Show More
@@ -47,6 +47,15 b' class TestDeleteScopesDeletesIntegration'
47 assert integration is None
47 assert integration is None
48
48
49
49
50 count = 1
51
52 def counter():
53 global count
54 val = count
55 count += 1
56 return '{}_{}'.format(val, time.time())
57
58
50 @pytest.fixture()
59 @pytest.fixture()
51 def integration_repos(request, StubIntegrationType, stub_integration_settings):
60 def integration_repos(request, StubIntegrationType, stub_integration_settings):
52 """
61 """
@@ -63,27 +72,26 b' def integration_repos(request, StubInteg'
63 """
72 """
64 fixture = Fixture()
73 fixture = Fixture()
65
74
66
75 parent_group_id = 'int_test_parent_group_{}'.format(counter())
67 parent_group_id = 'int_test_parent_group_%s' % time.time()
68 parent_group = fixture.create_repo_group(parent_group_id)
76 parent_group = fixture.create_repo_group(parent_group_id)
69
77
70 other_group_id = 'int_test_other_group_%s' % time.time()
78 other_group_id = 'int_test_other_group_{}'.format(counter())
71 other_group = fixture.create_repo_group(other_group_id)
79 other_group = fixture.create_repo_group(other_group_id)
72
80
73 child_group_id = (
81 child_group_id = (
74 parent_group_id + '/' + 'int_test_child_group_%s' % time.time())
82 parent_group_id + '/' + 'int_test_child_group_{}'.format(counter()))
75 child_group = fixture.create_repo_group(child_group_id)
83 child_group = fixture.create_repo_group(child_group_id)
76
84
77 parent_repo_id = 'int_test_parent_repo_%s' % time.time()
85 parent_repo_id = 'int_test_parent_repo_{}'.format(counter())
78 parent_repo = fixture.create_repo(parent_repo_id, repo_group=parent_group)
86 parent_repo = fixture.create_repo(parent_repo_id, repo_group=parent_group)
79
87
80 child_repo_id = 'int_test_child_repo_%s' % time.time()
88 child_repo_id = 'int_test_child_repo_{}'.format(counter())
81 child_repo = fixture.create_repo(child_repo_id, repo_group=child_group)
89 child_repo = fixture.create_repo(child_repo_id, repo_group=child_group)
82
90
83 other_repo_id = 'int_test_other_repo_%s' % time.time()
91 other_repo_id = 'int_test_other_repo_{}'.format(counter())
84 other_repo = fixture.create_repo(other_repo_id, repo_group=other_group)
92 other_repo = fixture.create_repo(other_repo_id, repo_group=other_group)
85
93
86 root_repo_id = 'int_test_repo_root_%s' % time.time()
94 root_repo_id = 'int_test_repo_root_{}'.format(counter())
87 root_repo = fixture.create_repo(root_repo_id)
95 root_repo = fixture.create_repo(root_repo_id)
88
96
89 integrations = {}
97 integrations = {}
General Comments 0
You need to be logged in to leave comments. Login now