34 Commits

Author SHA1 Message Date
Ben Lopatin
f20fc33349 Simplify mocking with default values mocker 2023-08-31 15:56:50 -04:00
Ben Lopatin
3d2a8def57 Convert remaining tests to pytest 2023-08-31 15:29:23 -04:00
Ben Lopatin
80c1a17e4b Convert topics test to pytest 2023-08-31 15:14:46 -04:00
Ben Lopatin
b5eda64a05 Convert additional tests to pytest 2023-08-31 15:06:02 -04:00
Ben Lopatin
c5466fd182 Rename fixtures 2023-08-31 13:53:34 -04:00
Ben Lopatin
fe17d3977c Remove unnecessary fixture arg 2023-08-31 13:52:35 -04:00
Ben Lopatin
2cf6c675e0 Remove old Python support 2023-08-31 13:46:56 -04:00
Ben Lopatin
991cc564dd Switch test to pytest, sso coverage = 100% 2023-08-31 13:44:54 -04:00
Max Lancaster
e9748279b8 Add client endpoint for updating category 2023-02-28 19:55:26 -05:00
Max Lancaster
9709744b33 Add endpoint to fetch latest posts across topics
Added endpoint for looking up latest posts across topics, see Discourse api documentation here:

https://docs.discourse.org/#tag/Posts/operation/listPosts
2023-01-24 18:21:42 -05:00
Ben Lopatin
96f9ea4b50 Remove Python 2 compatibility checks 2021-12-18 14:41:33 -05:00
Alex Kerney
aeb763c42c Authenticate via headers
Closes bennylope/pydiscourse#27
2019-12-04 18:09:00 -05:00
Ben Lopatin
be74c4e5b7
Add GitHub Actions testing workflow (#24)
* Add GitHub Actions testing workflow

* Update named Python versions and dev status

* Use unittest.mock as default mock source

Fall back to package for Python 2.7

* Try installing mock outside of setup

* Switch to GitHub actions shield
2019-10-06 12:04:51 -04:00
Ben Lopatin
89f12f707b Break out of infinite loop for ok responses 2019-04-21 13:52:14 -04:00
Ben Lopatin
c0db7215c9 Format with black 2018-10-29 18:02:58 -04:00
jddorweiler
f8d628909c update test 2016-09-08 14:38:22 -04:00
Matheus Fernandes
66089011f7 Added 'user-badges' endpoint
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
2016-06-10 11:46:56 -03:00
Matheus Fernandes
fe317b6be8 Added badges endpoint to pydiscourse
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>
2016-06-10 10:59:03 -03:00
Ben Lopatin
1e151fc51f Remove module import from setup.py
Get the version number from the file, not by importing and thus trying
to import requests
2016-04-08 17:57:19 -04:00
Ben Lopatin
c5207759a8 Fix empty response handling 2016-04-08 17:36:18 -04:00
Ben Lopatin
46051fd248 Fix unsuspend test 2016-04-08 13:47:43 -04:00
Ben Lopatin
eed4df564d Add unsuspend method and un/suspend method tests 2016-04-08 13:43:05 -04:00
Ben Lopatin
2daebbfa23 Add test for external_id method 2016-04-08 13:43:05 -04:00
Ben Lopatin
9a23db7e43 Consolidate SSO tests
No good reason to separate these for now
2016-04-08 13:43:05 -04:00
Ben Lopatin
c155c8a60d Cleanup for packaging 2016-04-07 17:41:54 -04:00
Guillaume Beraudo
f0f3256e01 Fix python 3.4 support 2016-01-19 15:53:20 +01:00
Julia Grace
29cb1ce14b fixed test_topic()' 2015-04-22 10:51:39 -07:00
Felix Rauch
cc03b5cc08 Add method to GET list of users (/admin)
This allows to grab all users, as used in the Discourse admin UI at
/admin/users/list. By default grabs all active users, but also accepts
the other views like "staff", "suspended", etc.
2014-12-19 01:22:13 +01:00
Marc Sibson
a07280975a fixes for py26, py34 tests 2014-05-28 22:50:18 -07:00
Marc Sibson
cb0244652d add SSO support, thanks James Potter 2014-05-28 10:18:48 -07:00
Marc Sibson
d81a0b9f80 fix test 2014-05-12 13:08:32 -07:00
Marc Sibson
cb86f1dc9c fix tests 2014-04-29 14:27:47 -07:00
Marc Sibson
c6ab244f0b fix error handling 2014-04-21 16:57:13 -04:00
Marc Sibson
4fac3f93f5 add some tests and fixes found by them \o/ 2014-04-04 22:37:17 -07:00