Samuël WEBER
7d981684aa
add anonymize endpoint
2024-02-24 13:26:43 -05:00
Samuël WEBER
53be265b23
fix: search term moved to q
2023-09-27 11:17:01 -04:00
Samuël WEBER
a07b122c39
add about endpoint for site statistics
2023-09-07 10:57:28 -04:00
Ben Lopatin
7ca7f47e94
Replace requests_mock with discourse_request
...
Requires just slightly less upfront configuration in each test.
2023-09-01 10:21:11 -04:00
Paul Dettorer Hervot
f94d861c64
Add a wrapper for the /posts/by_number endpoint
2023-09-01 11:57:11 +02:00
Ben Lopatin
acb0af24d1
Handle commented code
2023-08-31 17:46:35 -04:00
Ben Lopatin
30f9b9b338
Inject fixture
2023-08-31 17:30:10 -04:00
Ben Lopatin
2be1a46c1d
Format code
2023-08-31 17:24:12 -04:00
Ben Lopatin
6c1d9a9e1d
Use data from fixture
...
Makes it explicit that this data is used here, plus makes the line
shorter.
2023-08-31 17:21:05 -04:00
Ben Lopatin
7ab58533b7
Remove unnecessary parens
2023-08-31 17:18:22 -04:00
Ben Lopatin
2a3036f039
Add trailing commas
2023-08-31 17:15:40 -04:00
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