Skip to content
Snippets Groups Projects
Commit 536588a1 authored by dcz's avatar dcz
Browse files

Test bugfix.

parent c5e584bd
No related branches found
No related tags found
No related merge requests found
......@@ -84,9 +84,9 @@ class ApiTest(TestCase):
request = self.factory.post("/pl/freelus/attach_examples_to_frame/",
HTTP_X_REQUESTED_WITH='XMLHttpRequest',
data={'frame_id': frame.pk,
'argument_id': argument.pk,
'selected_lus': json.dumps([self.lu.pk], separators=(',', ':')),
'example_ids': json.dumps([self.example.pk], separators=(',', ':'))})
response = attach_examples_to_frame(request)
examples = ExampleConnection.objects.filter(arguments=argument)
examples = ExampleConnection.objects.filter(lexical_unit=self.lu)
self.assertEqual(1, examples.count())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment