Compare commits
No commits in common. "ea7b6391c1a272b3fbf85f9b7a339ca78590062f" and "59de00527d1a6fdb52f12f2b9d89f2adfc49629b" have entirely different histories.
ea7b6391c1
...
59de00527d
1
Pipfile
1
Pipfile
@ -14,7 +14,6 @@ pyyaml = "~=5.4.1"
|
|||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
flake8 = "~=3.9.2"
|
flake8 = "~=3.9.2"
|
||||||
yapf = "~=0.31.0"
|
|
||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
python_version = "3.8"
|
python_version = "3.8"
|
||||||
|
@ -43,13 +43,6 @@ python -m unittest discover ki
|
|||||||
flake8
|
flake8
|
||||||
```
|
```
|
||||||
|
|
||||||
### Formatierung
|
|
||||||
|
|
||||||
Um ein einheitliches Quellcode-Erlebnis zu haben, kann der Code mit yapf neu formatiert werden:
|
|
||||||
|
|
||||||
'''
|
|
||||||
yapf -i --recursive ki/
|
|
||||||
'''
|
|
||||||
|
|
||||||
### Testbenutzer
|
### Testbenutzer
|
||||||
|
|
||||||
|
@ -22,14 +22,13 @@ class TestSkillsEndpoint(unittest.TestCase):
|
|||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
{
|
{
|
||||||
"skills": [{
|
"skills": [
|
||||||
"id": 1,
|
{"id": 1, "name": "PHP"},
|
||||||
"name": "PHP"
|
{"id": 3, "name": "Python"}
|
||||||
}, {
|
]
|
||||||
"id": 3,
|
},
|
||||||
"name": "Python"
|
response.json
|
||||||
}]
|
)
|
||||||
}, response.json)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "main":
|
if __name__ == "main":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user