Skip to content

Commit

Permalink
Revert "Add rooms.export endpoint"
Browse files Browse the repository at this point in the history
This reverts commit 00e95f8
  • Loading branch information
jadolg committed Aug 9, 2022
1 parent 8cf93c3 commit 9f78293
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions rocketchat_API/APISections/rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,3 @@ def rooms_create_discussion(self, prid, t_name, **kwargs):
return self.call_api_post(
"rooms.createDiscussion", prid=prid, t_name=t_name, kwargs=kwargs
)

def rooms_export(self, rid, atype, aformat="html", **kwargs):
"""Export room to a file or email."""
return self.call_api_post(
"rooms.export", rid=rid, type=atype, format=aformat, kwargs=kwargs
)
5 changes: 0 additions & 5 deletions tests/test_rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,3 @@ def test_rooms_admin_rooms(logged_rocket):
rooms_with_filter = logged_rocket.rooms_admin_rooms(**{"filter": "general"}).json()
assert rooms_with_filter.get("success")
assert rooms_with_filter.get("rooms")[0].get("_id") == "GENERAL"


def test_rooms_export(logged_rocket):
rooms_export = logged_rocket.rooms_export(rid="GENERAL", atype="file").json()
assert rooms_export.get("success")

0 comments on commit 9f78293

Please sign in to comment.