SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit d79ba9b1 authored by Boris Ponsioen's avatar Boris Ponsioen
Browse files

Makes fixtures for permissions, groups and a user plus contributor and a single test.

parent 94f92359
No related branches found
No related tags found
No related merge requests found
......@@ -3,17 +3,14 @@ from django.test import Client
from submissions.views import *
print('Hi')
class PrefillUsingIdentifierTest(TestCase):
def test_retrieving_arxiv_paper(self):
# Create an instance of a GET request.
# request = self.factory.post('/submissions/prefill_using_identifier',
# {'identifier': '1512.00030v1'})
fixtures = ['permissions', 'groups', 'contributors']
def test_retrieving_arxiv_paper(self):
client = Client()
client.login()
client.login(username="Test", password="testpw")
response = client.post('/submissions/prefill_using_identifier',
{'identifier': '1512.00030v1'})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment