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
Branches
No related merge requests found
...@@ -84,9 +84,9 @@ class ApiTest(TestCase): ...@@ -84,9 +84,9 @@ class ApiTest(TestCase):
request = self.factory.post("/pl/freelus/attach_examples_to_frame/", request = self.factory.post("/pl/freelus/attach_examples_to_frame/",
HTTP_X_REQUESTED_WITH='XMLHttpRequest', HTTP_X_REQUESTED_WITH='XMLHttpRequest',
data={'frame_id': frame.pk, 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=(',', ':'))}) 'example_ids': json.dumps([self.example.pk], separators=(',', ':'))})
response = attach_examples_to_frame(request) 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()) self.assertEqual(1, examples.count())
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment