Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better feedback #203

Merged
merged 11 commits into from
Nov 21, 2023
2 changes: 1 addition & 1 deletion inventree/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from . import api as inventree_api


INVENTREE_PYTHON_VERSION = "0.12.2"
INVENTREE_PYTHON_VERSION = "0.13.0"


logger = logging.getLogger('inventree')
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[flake8]
ignore =
C901,
# - W293 - blank lines contain whitespace
W293,
# - E501 - line too long (82 characters)
Expand Down
4 changes: 4 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ def test(c, source=None, update=False, reset=False, debug=False):

# If a source file is provided, check that it actually exists
if source:

if not source.endswith('.py'):
source += '.py'

if not os.path.exists(source):
source = os.path.join('test', source)

Expand Down
2 changes: 2 additions & 0 deletions test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def setUp(self):
SERVER,
username=USERNAME, password=PASSWORD,
timeout=30,
token_name='python-test',
use_token_auth=True
)


Expand Down
Loading