305 Commits

Author SHA1 Message Date
Ben Lopatin 6d54153a24 Merge pull request #90 from pydiscourse/new-version
Update version for release
v1.6.1
2023-09-01 10:37:25 -04:00
Ben Lopatin c30a453a6b Bump version 2023-09-01 10:35:28 -04:00
Ben Lopatin 3e87ef3849 Merge pull request #89 from pydiscourse/use-discourse-request
Replace mocks and increase coverage requirement
2023-09-01 10:23:50 -04:00
Ben Lopatin 0f1cc41967 Bump up coverage requirement 2023-09-01 10:21:48 -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
Ben Lopatin d8ec2f61aa Merge pull request #88 from Dettorer/add-endpoint-post-by-number
Add a wrapper for the /posts/by_number endpoint
2023-09-01 10:08:46 -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 565b714d81 Merge pull request #87 from pydiscourse/bennylope-patch-1
Delete .coveragerc
2023-08-31 21:10:41 -04:00
Ben Lopatin e1a9038789 Delete .coveragerc
Inapplicable now
2023-08-31 21:08:30 -04:00
Ben Lopatin b38f99bffe Merge pull request #86 from pydiscourse/add-ruff
Add ruff and cleanup code
v1.6.0
2023-08-31 18:10:24 -04:00
Ben Lopatin 4d20bfd79c Update history and version 2023-08-31 18:09:02 -04:00
Ben Lopatin 99359aa518 Ignore formatting and simple rule-based changes 2023-08-31 18:03:15 -04:00
Ben Lopatin ea7d47c5da Add 'bad' update to test actions 2023-08-31 17:59:38 -04:00
Ben Lopatin fcdd6ab8dd Add linting rule 2023-08-31 17:56:09 -04:00
Ben Lopatin c850e34112 Add ruff for general use 2023-08-31 17:53:51 -04:00
Ben Lopatin ee21957027 Add ruff and black pre-commit 2023-08-31 17:47:11 -04:00
Ben Lopatin acb0af24d1 Handle commented code 2023-08-31 17:46:35 -04:00
Ben Lopatin 31db8017bc Remove unnecessary dict 2023-08-31 17:46:18 -04:00
Ben Lopatin 5d28665fbb Raise exception from original ValueError 2023-08-31 17:45:53 -04:00
Ben Lopatin 51771057f5 Make arguments keyword only
Applies where boolean defaults are included
2023-08-31 17:40:49 -04:00
Ben Lopatin d7e249847a Replace shadowed builtin names 2023-08-31 17:37:51 -04:00
Ben Lopatin b348fe13f3 Use stderr instead of print 2023-08-31 17:32:57 -04:00
Ben Lopatin 30f9b9b338 Inject fixture 2023-08-31 17:30:10 -04:00
Ben Lopatin 815bfd8af6 Remove encoding 2023-08-31 17:27:28 -04:00
Ben Lopatin 2be1a46c1d Format code 2023-08-31 17:24:12 -04:00
Ben Lopatin 2aac9a20be Use f-strings 2023-08-31 17:23:54 -04:00
Ben Lopatin fe4f67c041 Use relative values 2023-08-31 17:22:02 -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 dc498679cc Remove explict object inheritance 2023-08-31 17:17:34 -04:00
Ben Lopatin c49d29620d Remove unicode literal 2023-08-31 17:17:04 -04:00
Ben Lopatin 2a3036f039 Add trailing commas 2023-08-31 17:15:40 -04:00
Ben Lopatin 14b2f7a08d Merge pull request #85 from pydiscourse/cleanup
Clean up tests, Python support
2023-08-31 16:17:55 -04:00
Ben Lopatin 5c4d0b3aed Update contributing about tests 2023-08-31 16:14:12 -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 87cf273cd6 Add coverage requirement for sso module 2023-08-31 13:58:03 -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 f93e1cb341 Bump version 2023-08-31 13:48:33 -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
Ben Lopatin 7ebc08356a Remove duplicate periods 2023-08-31 13:35:30 -04:00
Ben Lopatin a58ca74362 Update pytest version 2023-08-31 13:35:09 -04:00
Ben Lopatin 8a73f911e2 Remove Python 3.7 from test envs 2023-08-31 13:07:05 -04:00
Ben Lopatin 87891a6331 Remove Python 3.5 typing support! 2023-08-31 13:06:45 -04:00
Ben Lopatin daab45edda Merge pull request #84 from pydiscourse/version-update-1.5
Version 1.5 update
v1.5.0
2023-08-31 12:55:52 -04:00
Ben Lopatin 4382449a72 Remove Python 3.7 support 2023-08-31 12:53:06 -04:00