-
Notifications
You must be signed in to change notification settings - Fork 3
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
[feature/OP-515=> QA] Intégration des FIE : partnership côdiplomation #380
Conversation
# self.assertFalse(formset.is_valid()) | ||
# self.assertIn('diploma_with_ucl_by_partner', formset.forms[0].errors) | ||
# self.assertIn('diploma_prod_by_partner', formset.forms[0].errors) | ||
# self.assertIn('supplement_prod_by_partner', formset.forms[0].errors) |
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.
A voir si encore utile
|
||
def test_get_own_partnership_as_gs(self): | ||
self.client.force_login(self.user_gs) | ||
response = self.client.get(self.url, follow=True) | ||
self.assertTemplateUsed(response, 'partnerships/partnership/partnership_update.html') | ||
self.assertNotIn('start_academic_year', response.context_data['form_year'].fields) | ||
# self.assertIn('start_academic_year', response.context_data['form_year'].fields) | ||
# self.assertNotIn('start_academic_year', response.context_data['form_year'].fields) |
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.
A voir si encore utile
self.assertNotIn('start_academic_year', response.context_data['form_year'].fields) | ||
self.assertNotIn('is_public', response.context_data['form'].fields) | ||
# self.assertIn('start_academic_year', response.context_data['form_year'].fields) | ||
# self.assertNotIn('is_public', response.context_data['form'].fields) |
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.
A voir si encore utile
locale/en/LC_MESSAGES/django.po
Outdated
msgstr "Yes" | ||
|
||
msgid "Partagé" | ||
msgstr "Shared" |
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.
Les messages contenu dans les balises gettext (alias '_') doivent être en Anglais et les traductions doivent être effectuées dans le fichier locale/fr/LC_MESSAGES/django.po
window.onpopstate = function () { | ||
window.history.pushState(null, "", window.location.href); | ||
}; | ||
</script> |
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.
Pourquoi devez-vous jouer avec l'historique du navigateur ?
# | ||
# form = PartnershipCourseForm(data=data, initial={"partnership_type":PartnershipType.COURSE.name}) | ||
# print(form.errors) | ||
# self.assertTrue(form.is_valid()) |
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.
Comment ?
views/partnership/create.py
Outdated
|
||
@transaction.atomic | ||
def post(self, request, *args, **kwargs): | ||
# self.get_partnership() |
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.
Comment ?
views/partnership/create.py
Outdated
|
||
return render(request, self.template_name, {'formset': formset, 'partnership': self.partnership}) | ||
|
||
@transaction.atomic |
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.
Le décorateur n'est pas nécessaire.
Par défaut, nous optons pour les transactions atomiques au niveau d'une requête HTTP (cf. https://docs.djangoproject.com/en/5.1/ref/settings/#std-setting-DATABASE-ATOMIC_REQUESTS ). N'oubliez pas de l'activer en local dans le .env DATABASE_ATOMIC_REQUEST=True
views/partnership/read.py
Outdated
# 'partnershiprelation', | ||
# queryset=Organization.objects.order_by('name').select_related('partner') | ||
# ), | ||
|
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.
Comment ?
locale/en/LC_MESSAGES/django.po
Outdated
@@ -1373,3 +1454,6 @@ msgstr "Visible on the public interface" | |||
|
|||
msgid "website" | |||
msgstr "Website" | |||
|
|||
#~ msgid "diploma_by_ucl" | |||
#~ msgstr "Diploma UCLouvain" |
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.
A supprimer
No description provided.