Commit f4cd495b authored by John Kirkwood's avatar John Kirkwood

Add test and dependencies and update CI for #1

parent e51aeac2
Pipeline #2556 failed with stages
in 17 seconds
......@@ -7,7 +7,7 @@ pytest:
stage: test
image: yourlabs/python
script:
- pip install -e .
- pip install -e .[test]
- py.test --cov . -v
pypi:
......
......@@ -18,6 +18,7 @@ import pytest
('help_module_attr_notfound', 'help cli2.skipppp'),
('help_module_no_callables', 'help datetime'),
('help_module_no_signature', 'help datetime.datetime'),
('help_module_when_using_cli2', 'help djcli'),
('docmod', 'docmod cli2'),
('docmod_noargs', 'docmod'),
('docfile', 'docfile cli2/cli.py'),
......
......@@ -6,6 +6,14 @@ setup(
versioning='dev',
setup_requires='setupmeta',
install_requires=['colorama'],
extras_require=dict(
test=[
'pytest',
'pytest-cov',
'pytest-mock',
'djcli',
],
),
author='James Pic',
author_email='jamespic@gmail.com',
url='https://yourlabs.io/oss/cli2',
......
command: cli2 help djcli
retcode: 1
stdout:
djcli: time for CLI party !
Will try to auto-detect $DJANGO_SETTINGS_MODULE by searching for settings.py
from the current directory.
chpasswd Change the password for user.
delete Delete a model filtered with kwargs.
detail Print detail for a model.
ls Search models
save Update or create a model.
setting Show settings from django.
settings Print out DJANGO_SETTINGS_MODULE.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment