Skip to content

Commit

Permalink
[SDNTB-773] fix(iMatrics): Use article/store endpoint for publishin…
Browse files Browse the repository at this point in the history
…g data (#2369)

* [SDNTB-773] fix(iMatrics): Use `article/store` endpoint for publishing data

* fix(behave): Install develop version of Planning
  • Loading branch information
MarkLark86 authored Aug 25, 2022
1 parent 06298ca commit d8b15f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion superdesk/text_checkers/ai/imatrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def data_operation(self, verb: str, operation: str, name: Optional[str], data: d
)

def publish(self, data):
return self._request("article/concept", data)
return self._request("article/store", data)

def feedback(self, data):
payload = self._transform_to_imatrics(data["item"], publish=True)
Expand Down
2 changes: 1 addition & 1 deletion tests/publish/transmitters/imatrics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_publish_article(self):
with patch.dict(superdesk.resources, resources):
responses.add(
responses.POST,
url=self.app.config["IMATRICS_BASE_URL"] + "article/concept",
url=self.app.config["IMATRICS_BASE_URL"] + "article/store",
json={"uuid": "guid"},
)
formatter = IMatricsFormatter()
Expand Down
2 changes: 1 addition & 1 deletion tests/text_checkers/ai/imatrics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def test_feedback(self):

responses.add(
responses.POST,
url=self.app.config["IMATRICS_BASE_URL"] + "/article/concept",
url=self.app.config["IMATRICS_BASE_URL"] + "/article/store",
json={"uuid": "guid"},
)

Expand Down

0 comments on commit d8b15f5

Please sign in to comment.