André Koch-Kramer
1b5c12c8fa
Add unittest for Profile.get_tagged_posts()
2018-08-02 16:48:06 +02:00
Alexander Graf
2567bec975
unittests: Test order of Profile.get_posts()
...
Motivated by #140 .
2018-07-09 10:08:18 +02:00
Alexander Graf
0e433294ad
unittests: Preserve query timestamps between tests
...
This avoids getting rate limited while running all the tests.
2018-05-30 13:16:16 +02:00
Alexander Graf
be43ebb5c5
Unittest for Profile.has_viewable_story
2018-05-14 10:42:31 +02:00
Alexander Graf
2722da6ae4
Fix anon username from id (find renamed profile)
...
maybe related to #95 , #104 , 67ac8f3397
.
2018-05-01 13:11:40 +02:00
Alexander Graf
0e40da1c70
Let Post.get_likes() yield Profile instances
2018-04-28 17:32:13 +02:00
Alexander Graf
2d9acd9989
Slightly improve error handling
...
Use raise from rather than raise where appropriate
Have a logic to reduce graphql page length if 400 Bad Request is
returned
2018-04-18 15:58:45 +02:00
Alexander Graf
066c3de113
get_followe{e,r}s yield Profiles rather than dicts
2018-04-17 15:11:50 +02:00
Alexander Graf
9d8175354b
Add paging tests for profiles and stories
2018-04-17 14:23:12 +02:00
Alexander Graf
dcd16f29c2
Split tests TestInstaloader{Anonymously,LoggedIn}
2018-04-17 14:10:27 +02:00
Alexander Graf
df1cdb5d48
Remove now-unneeded Tristate
2018-04-13 19:07:23 +02:00
Alexander Graf
9b3014d5bf
Fix anonymous GraphQL queries
...
Port of 73ec884ea4
to v4-dev.
2018-04-11 21:24:36 +02:00
Alexander Graf
25b8165547
Various minor fixes
...
* Fix Post.owner_profile in cases where initial owner struct contains id
only
* Assert node structure is complete enough at Post creation
* Fix get_followees() call in _main()
* Prefer importing from '.' rather than '.<submodule>' in __main__
* Fix name of instaloader_unittests ('-' is illegal in module names)
* Foreport 5fe2a70374
"Fix downloading of hashtags"
* Foreport 67ac8f3397
"Enforce being logged in for getting username by id"
2018-04-11 10:49:03 +02:00
Alexander Graf
d90d67d619
Refactor Profile to allow lazy initialization
...
This changes also allows us to use Profile class in more situations,
which makes the code better.
2018-04-10 15:25:36 +02:00
Alexander Graf
c350847b50
InstaloaderContext class for log and low-level IO
2018-04-06 17:40:13 +02:00
Alexander Graf
d3bc7cb82b
Add unit tests invoking all server requests
2018-03-24 19:38:29 +01:00