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

[feature/OP-515=> QA] Intégration des FIE : partnership côdiplomation #380

Merged
merged 75 commits into from
Jan 9, 2025

Conversation

anlaurce
Copy link

@anlaurce anlaurce commented Dec 4, 2024

No description provided.

Anne laurence Dermine and others added 30 commits July 11, 2024 14:40
# 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)
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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

msgstr "Yes"

msgid "Partagé"
msgstr "Shared"
Copy link
Contributor

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

locale/en/LC_MESSAGES/django.po Show resolved Hide resolved
window.onpopstate = function () {
window.history.pushState(null, "", window.location.href);
};
</script>
Copy link
Contributor

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())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment ?


@transaction.atomic
def post(self, request, *args, **kwargs):
# self.get_partnership()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment ?


return render(request, self.template_name, {'formset': formset, 'partnership': self.partnership})

@transaction.atomic
Copy link
Contributor

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

# 'partnershiprelation',
# queryset=Organization.objects.order_by('name').select_related('partner')
# ),

Copy link
Contributor

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 Show resolved Hide resolved
locale/en/LC_MESSAGES/django.po Outdated Show resolved Hide resolved
locale/en/LC_MESSAGES/django.po Outdated Show resolved Hide resolved
@@ -1373,3 +1454,6 @@ msgstr "Visible on the public interface"

msgid "website"
msgstr "Website"

#~ msgid "diploma_by_ucl"
#~ msgstr "Diploma UCLouvain"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A supprimer

@albrugnetti albrugnetti changed the title Feature/op 515 [Feature/OP-515=> QA] Jan 8, 2025
@albrugnetti albrugnetti changed the title [Feature/OP-515=> QA] [feature/OP-515=> QA] Jan 8, 2025
@albrugnetti albrugnetti changed the title [feature/OP-515=> QA] [feature/OP-515=> QA] Intégration des FIE : partnership côdiplomation Jan 8, 2025
@albrugnetti albrugnetti merged commit 46d89d4 into qa Jan 9, 2025
1 of 2 checks passed
@albrugnetti albrugnetti deleted the feature/OP-515 branch January 9, 2025 11:13
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.

3 participants