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

Test available as saas #1526

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ def test_academy_student__post__with_user_and_cohort_in_data(self):
"last_name": "McKornick",
"phone": "",
"status": "INVITED",
"id": 2,
}

self.assertEqual(json, expected)
Expand Down Expand Up @@ -1166,6 +1167,7 @@ def test_academy_student__post__with_user__it_ignore_the_param_plans(self):
"last_name": "McKornick",
"phone": "",
"status": "INVITED",
"id": 2,
}

self.assertEqual(json, expected)
Expand Down Expand Up @@ -1269,6 +1271,7 @@ def test_academy_student__post__without_user_in_data(self):
"last_name": "McKornick",
"phone": "",
"status": "INVITED",
"id": 2,
}

self.assertEqual(json, expected)
Expand Down Expand Up @@ -1408,6 +1411,7 @@ def test_academy_student__post__without_user_in_data__with_plan(self):
"last_name": "McKornick",
"phone": "",
"status": "INVITED",
"id": 2,
}

self.assertEqual(json, expected)
Expand Down Expand Up @@ -1570,6 +1574,7 @@ def test_academy_student__post__without_user_in_data__invite_already_exists__dif
"last_name": "McKornick",
"phone": "",
"status": "INVITED",
"id": 2,
}

self.assertEqual(json, expected)
Expand Down
1 change: 1 addition & 0 deletions breathecode/payments/tests/urls/tests_academy_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def get_serializer(event, currency, service=None, academy=None, service_items=[]
"time_of_life_unit": event.time_of_life_unit,
"trial_duration": event.trial_duration,
"trial_duration_unit": event.trial_duration_unit,
"id": event.id,
}


Expand Down
1 change: 1 addition & 0 deletions breathecode/payments/tests/urls/tests_academy_plan_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def get_serializer(event, currency, service=None, academy=None, service_items=[]
"time_of_life_unit": event.time_of_life_unit,
"trial_duration": event.trial_duration,
"trial_duration_unit": event.trial_duration_unit,
"id": event.id,
}


Expand Down
1 change: 1 addition & 0 deletions breathecode/payments/tests/urls/tests_academy_plan_slug.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def get_serializer(event, currency, service=None, academy=None, service_items=[]
"time_of_life_unit": event.time_of_life_unit,
"trial_duration": event.trial_duration,
"trial_duration_unit": event.trial_duration_unit,
"id": event.id,
}


Expand Down
4 changes: 3 additions & 1 deletion breathecode/payments/tests/urls/tests_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

from django.urls import reverse_lazy
from rest_framework import status
from breathecode.utils.api_view_extensions.api_view_extension_handlers import APIViewExtensionHandlers

from breathecode.utils.api_view_extensions.api_view_extension_handlers import APIViewExtensionHandlers
from breathecode.utils.api_view_extensions.extensions import lookup_extension

from ..mixins import PaymentsTestCase


Expand Down Expand Up @@ -75,6 +76,7 @@ def get_serializer(event, currency, service=None, academy=None, service_items=[]
"time_of_life_unit": event.time_of_life_unit,
"trial_duration": event.trial_duration,
"trial_duration_unit": event.trial_duration_unit,
"id": event.id,
}


Expand Down
Loading