Skip to content

Commit

Permalink
Merge pull request #986 from PrimozGodec/embedding-tests
Browse files Browse the repository at this point in the history
Document Embedding tests - do requests server when testing report
  • Loading branch information
PrimozGodec authored Jun 26, 2023
2 parents dd01f33 + 3446b47 commit 31c44c1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def test_language_from_settings(self):
self.send_signal(widget.Inputs.corpus, self.corpus, widget=widget)
self.assertEqual("French", widget.language)

@patch(PATCH_METHOD, make_dummy_post(b'{"embedding": [1.3, 1]}'))
@patch("orangecontrib.text.widgets.owdocumentembedding.OWDocumentEmbedding.report_items")
def test_report(self, mocked_items: Mock):
self.widget.findChildren(QRadioButton)[0].click()
Expand Down

0 comments on commit 31c44c1

Please sign in to comment.