Skip to content
Snippets Groups Projects
Commit 4fb42b2e authored by dcz's avatar dcz
Browse files

Merge branch 'lu_without_semantic_frames' into vertical_relations

parents 09281db6 536588a1
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