-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
import Parler | ||
from Parler import with_auth as authed | ||
import os | ||
from Parler import utils | ||
|
||
p = Parler.Parler(debug=True) | ||
au = authed.AuthSession(debug=False) | ||
|
||
|
||
def test_get_post(): | ||
r = p.post_info("ef4d02fe-7a5a-4ab4-8e82-7c0ee5e32960") | ||
assert r.get("status") == "ok" | ||
|
||
assert "uuid" in r.get("data")[0].get("primary") | ||
assert utils.is_ok(r) | ||
assert "postuuid" in r.get("data") | ||
assert ( | ||
r.get("data")[0].get("primary").get("uuid") | ||
r.get("data").get("postuuid") | ||
== "ef4d02fe-7a5a-4ab4-8e82-7c0ee5e32960" | ||
) | ||
assert "id" in r.get("data")[0].get("primary") | ||
assert "uuid" in r.get("data")[0].get("primary") | ||
assert "body" in r.get("data")[0].get("primary") | ||
assert "full_body" in r.get("data")[0].get("primary") | ||
assert "image" in r.get("data")[0].get("primary") | ||
assert "domain_name" in r.get("data")[0].get("primary") | ||
assert "body" in r.get("data") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters