Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gwcelery
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emfollow
gwcelery
Commits
66e638d5
Commit
66e638d5
authored
2 years ago
by
Deep Chatterjee
Browse files
Options
Downloads
Patches
Plain Diff
fix tests
parent
47930400
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gwcelery/tests/test_tasks_superevents.py
+6
-1
6 additions, 1 deletion
gwcelery/tests/test_tasks_superevents.py
with
6 additions
and
1 deletion
gwcelery/tests/test_tasks_superevents.py
+
6
−
1
View file @
66e638d5
...
...
@@ -312,6 +312,8 @@ def _mock_event(event):
@patch
(
'
gwcelery.tasks.gracedb.get_superevent
'
,
lambda
_
:
_mock_superevent_data
)
@patch
(
'
gwcelery.tasks.gracedb.get_superevents
'
,
lambda
_
:
[
_mock_superevent_data
])
def
test_upload_same_event
():
"""
New event uploaded with the same coinc file as an
existing event G000002. The second upload should be added to
...
...
@@ -749,10 +751,13 @@ def test_S190421ar_spiir_scenario(): # noqa: N802
with
superevent_response
,
\
patch
(
'
gwcelery.tasks.gracedb.add_event_to_superevent
'
)
as
p1
,
\
patch
(
'
gwcelery.tasks.gracedb.update_superevent
'
)
as
p2
:
patch
(
'
gwcelery.tasks.gracedb.update_superevent
'
)
as
p2
,
\
patch
(
'
gwcelery.tasks.gracedb.get_superevents
'
,
return_value
=
SUPEREVENTS_NEIGHBOURS
.
values
())
as
p3
:
superevents
.
handle
(
payload
)
p1
.
assert_called_once
()
p2
.
assert_not_called
()
p3
.
assert_called_once
()
def
test_inj_means_should_not_publish
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment