Skip to content
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

Added tests for twilio endpoint #274

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Added tests for twilio endpoint #274

wants to merge 1 commit into from

Conversation

dkaufhold
Copy link

Didn't find under which circumstances these Exceptions get raised.
https://github.com/shoutit/shoutit-api/blob/dev/src/shoutit_twilio/views.py#L58

Which then leaves 6 lines uncovered.

@nourspace
Copy link
Member

The fact that

    user = models.OneToOneField(settings.AUTH_USER_MODEL, related_name='video_client')

and due to multiple requests from same client, race condition may occur. I solved it this way for now. A general solution for concurrency and race conditions is required for many endpoints.

@dkaufhold
Copy link
Author

Ok, since there's no way to reliably create race conditions in tests, I'd consider this done.

@nourspace nourspace closed this Sep 23, 2017
@nourspace nourspace changed the base branch from dev to develop September 26, 2017 22:38
@nourspace nourspace reopened this Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants