diff --git a/swh/deposit/tests/api/test_deposit_atom.py b/swh/deposit/tests/api/test_deposit_atom.py --- a/swh/deposit/tests/api/test_deposit_atom.py +++ b/swh/deposit/tests/api/test_deposit_atom.py @@ -77,30 +77,19 @@ self.atom_entry_data_badly_formatted = b""" """ - self.atom_error_with_decimal = b""" - - + self.atom_error_with_decimal = b""" + Composing a Web of Audio Applications hal hal-01243065 hal-01243065 - - https://hal-test.archives-ouvertes.fr/hal-01243065 - + https://hal-test.archives-ouvertes.fr/hal-01243065 test - - DSP programming,Web,Composability,Faust - + DSP programming,Web,Composability,Faust 2017-05-03T16:08:47+02:00 - - The Web offers a great opportunity to share, deploy and use programs - without installation difficulties. In this article we explore the idea of - freely combining/composing real-time audio applications deployed on the - Web using Faust audio DSP language. - + The Web offers a great opportunity to share, deploy and use programs without installation difficulties. In this article we explore the idea of freely combining/composing real-time audio applications deployed on the Web using Faust audio DSP language. 1 10.4 phpstorm @@ -126,7 +115,7 @@ FFJ -""" +""" # noqa def test_post_deposit_atom_201_even_with_decimal(self): """Posting an initial atom entry should return 201 with deposit receipt @@ -284,43 +273,29 @@ %s hal-01587361 - - https://hal.inria.fr/hal-01587361 - - - https://hal.inria.fr/hal-01587361/document - - - https://hal.inria.fr/hal-01587361/file/AffectationRO-v1.0.0.zip - + https://hal.inria.fr/hal-01587361 + https://hal.inria.fr/hal-01587361/document + https://hal.inria.fr/hal-01587361/file/AffectationRO-v1.0.0.zip doi:10.5281/zenodo.438684 The assignment problem AffectationRO Gruenpeter, Morane [INFO] Computer Science [cs] - - [INFO.INFO-RO] Computer Science [cs]/Operations Research [cs.RO] - + [INFO.INFO-RO] Computer Science [cs]/Operations Research [cs.RO] SOFTWARE - - Project in OR: The assignment problemA java implementation for - the assignment problem first release - + Project in OR: The assignment problemA java implementation for the assignment problem first release description fr 2015-06-01 2017-10-19 en + url stable Version sur hal - - Version entre par lutilisateur - + Version entre par lutilisateur Mots-cls Commentaire - - Rfrence interne - + Rfrence interne Collaboration/Projet nom du projet @@ -331,30 +306,18 @@ Projet ANR Projet Europen Platform/OS - - Dpendances - - - Etat du dveloppement - + Dpendances + Etat du dveloppement license url spdx - - Outils de dveloppement- outil no1 - - - Outils de dveloppement- outil no2 - + Outils de dveloppement- outil no1 + Outils de dveloppement- outil no2 http://code.com - - language 1 - - - language 2 - - """ % external_id.encode('utf-8') + language 1 + language 2 + """ % external_id.encode('utf-8') # noqa # when response = self.client.post( @@ -394,206 +357,8 @@ with self.assertRaises(Deposit.DoesNotExist): Deposit.objects.get(external_id=external_id) - atom_entry_data = b""" - - - - - - HAL TEI export of hal-01587083 - - - CCSD - - - Distributed under a Creative Commons Attribution 4.0 - International License - - - - - -

HAL API platform

-
-
-
- - - - - - - questionnaire software metadata - - - - Morane - Gruenpeter - - 7de56c632362954fa84172cad80afe4e - inria.fr - - 1556733 - - - - - Morane - Gruenpeter - - f85a43a5fb4a2e0778a77e017f28c8fd - gmail.com - - - - - 2017-09-29 11:21:32 - 2017-10-03 17:20:13 - 2017-10-03 17:20:13 - 2017-09-29 - 2017-09-29 - - - - - - - - - contributor - - - Morane - Gruenpeter - - - f85a43a5fb4a2e0778a77e017f28c8fd - - gmail.com - - - - - CCSD - hal-01587083 - - https://hal.inria.fr/hal-01587083 - - gruenpeter:hal-01587083 - 2017 - 2017 - - - - - - - - questionnaire software metadata - - - - Morane - Gruenpeter - - - 7de56c632362954fa84172cad80afe4e - - inria.fr - - 1556733 - - - - - - - - - - - English - - - - Computer Science [cs] - - - Software - - - - - - - - - - IRILL - - Initiative pour la Recherche et l'Innovation sur le - Logiciel Libre - - -
- -
- https://www.irill.org/ -
- - - - - -
- - Universite Pierre et Marie Curie - Paris 6 - UPMC - -
- 4 place Jussieu - 75005 Paris - -
- http://www.upmc.fr/ -
-
- - - Institut National de Recherche en Informatique et en - Automatique - - Inria - -
- - Domaine de VoluceauRocquencourt - BP 10578153 Le Chesnay - Cedex - - -
- http://www.inria.fr/en/ -
-
- - Universite Paris Diderot - Paris 7 - UPD7 - -
- - 5 rue Thomas-Mann - 75205 Paris cedex 13 - - -
- http://www.univ-paris-diderot.fr -
-
-
-
-
-
- """ + atom_entry_data = b"""HAL TEI export of hal-01587083CCSDDistributed under a Creative Commons Attribution 4.0 International License

HAL API platform

questionnaire software metadataMoraneGruenpeter7de56c632362954fa84172cad80afe4einria.fr1556733MoraneGruenpeterf85a43a5fb4a2e0778a77e017f28c8fdgmail.com2017-09-29 11:21:322017-10-03 17:20:132017-10-03 17:20:132017-09-292017-09-29contributorMoraneGruenpeterf85a43a5fb4a2e0778a77e017f28c8fdgmail.comCCSDhal-01587083https://hal.inria.fr/hal-01587083gruenpeter:hal-0158708320172017questionnaire software metadataMoraneGruenpeter7de56c632362954fa84172cad80afe4einria.fr1556733EnglishComputer Science [cs]SoftwareIRILLInitiative pour la Recherche et l'Innovation sur le Logiciel Libre
https://www.irill.org/
Universite Pierre et Marie Curie - Paris 6UPMC
4 place Jussieu - 75005 Paris
http://www.upmc.fr/
Institut National de Recherche en Informatique et en AutomatiqueInria
Domaine de VoluceauRocquencourt - BP 10578153 Le Chesnay Cedex
http://www.inria.fr/en/
Universite Paris Diderot - Paris 7UPD7
5 rue Thomas-Mann - 75205 Paris cedex 13
http://www.univ-paris-diderot.fr
""" # noqa + # when response = self.client.post( reverse(COL_IRI, args=[self.collection.name]),