-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schedule campaign events via endpoint #5915
Conversation
7dd90cd
to
c4007b6
Compare
add new fields to support invalidating fires without recreating events.
c4007b6
to
fae73d5
Compare
|
||
from . import APITest | ||
|
||
|
||
class DefinitionsEndpointTest(APITest): | ||
def test_endpoint(self): | ||
@mock_mailroom | ||
def test_endpoint(self, mr_mocks): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because we're no longer calling real mailroom.. had to rewrite this test to not assume imports setup flow dependencies correctly.. better this way.. tests shouldn't be calling real mailroom
0cb1f2a
to
b6ba429
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5915 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 508 508
Lines 25286 25283 -3
=========================================
- Hits 25286 25283 -3 ☔ View full report in Codecov by Sentry. |
Switches rescheduling of campaign events to use new mailroom endpoint
Requires nyaruka/mailroom#501
.. unfortunately triggered a lot of test rewriting because now tests creating campaign events have to mock mailroom but we still have a lot of tests that rely on real mailroom for flow imports