mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
parent
6118d1319c
commit
07f427226d
@ -15,7 +15,7 @@ repos:
|
|||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
- repo: https://github.com/pycqa/flake8
|
- repo: https://github.com/pycqa/flake8
|
||||||
rev: '4.0.1'
|
rev: '5.0.0'
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
additional_dependencies: [
|
additional_dependencies: [
|
||||||
@ -29,7 +29,7 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
- repo: https://github.com/jazzband/pip-tools
|
- repo: https://github.com/jazzband/pip-tools
|
||||||
rev: 6.6.2
|
rev: 6.8.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pip-compile
|
- id: pip-compile
|
||||||
name: pip-compile requirements-dev.in
|
name: pip-compile requirements-dev.in
|
||||||
|
@ -11,7 +11,7 @@ print("Testing InvenTree API endpoint")
|
|||||||
|
|
||||||
response = requests.get(url)
|
response = requests.get(url)
|
||||||
|
|
||||||
assert(response.status_code == 200)
|
assert response.status_code == 200
|
||||||
|
|
||||||
print("- Response 200 OK")
|
print("- Response 200 OK")
|
||||||
|
|
||||||
@ -25,11 +25,11 @@ required_keys = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
for key in required_keys:
|
for key in required_keys:
|
||||||
assert(key in data)
|
assert key in data
|
||||||
print(f"- Found key '{key}'")
|
print(f"- Found key '{key}'")
|
||||||
|
|
||||||
# Check that the worker is running
|
# Check that the worker is running
|
||||||
assert(data['worker_running'])
|
assert data['worker_running']
|
||||||
|
|
||||||
print("- Background worker is operational")
|
print("- Background worker is operational")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user