Commit d8e1a73
authored
refactor(contrib): cleanup code and add proper formatting( #27)
* refactor(redis): inherit from redis.asyncio.Redis to expose all commands
* chore(contrib): remove granian dependency and add tortoise-orm support
- Remove granian>=1.2.0 from project and dev dependencies
- Add tortoise-orm>=0.20.0 to all dependencies
- Update Redis test mocks to use execute_command instead of execute
- Replace json_get/json_set mocks with standard get/set methods
- Add json() sync method mock helper to redis_client fixture
- Simplify mocked methods list in test fixtures
- Remove unnecessary mock assertions in close() and json operation tests
* refactor(contrib): cleanup code and add proper formatting1 parent 196536a commit d8e1a73
93 files changed
Lines changed: 2186 additions & 1931 deletions
File tree
- nexios_contrib
- accepts
- etag
- graphql
- jrpc
- mail
- proxy
- redis
- request_id
- scalar
- scheduler
- slashes
- tasks
- timeout
- tortoise
- trusted
- tests
- etag
- jrpc
- request_id
- slashes
- test_redis
- test_scheduler
- test_tasks
- tortoise
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 13 | + | |
21 | 14 | | |
22 | | - | |
23 | | - | |
24 | 15 | | |
| 16 | + | |
25 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
26 | 21 | | |
27 | 22 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 7 | | |
| 8 | + | |
| 9 | + | |
14 | 10 | | |
15 | 11 | | |
| 12 | + | |
| 13 | + | |
16 | 14 | | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
| 63 | + | |
0 commit comments