Skip to content

Commit

Permalink
Merge pull request #81 from RockefellerArchiveCenter/issue-80
Browse files Browse the repository at this point in the history
Fixes typo in command line interface
  • Loading branch information
helrond authored Jun 6, 2022
2 parents 5edc669 + 68503d1 commit fa87067
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dacsspace/command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def main():
parser.add_argument(
'--as_config',
help='Filepath for ArchivesSpace configuration file',
typ=str,
type=str,
default='as_config.cfg')
parser.add_argument(
'--published_only',
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ArchivesSnake==0.9.1
requests==2.27.1
jsonschema==4.4.0
jsonschema==4.6.0
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ idna==3.3
# via requests
jarowinkler==1.0.2
# via rapidfuzz
jsonschema==4.4.0
jsonschema==4.6.0
# via -r requirements.in
more-itertools==8.12.0
# via archivessnake
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
long_description_content_type="text/markdown",
author="Rockefeller Archive Center",
author_email="[email protected]",
version="0.1.0",
version="0.1.1",
license='MIT',
packages=find_packages(),
entry_points={
Expand Down
10 changes: 10 additions & 0 deletions tests/test_commandline.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os
from unittest import TestCase


class CommandLineTest(TestCase):

def test_command_line(self):
"""Ensures command line interface does not contain typos."""
exit_status = os.system('dacsspace --help')
assert exit_status == 0
2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
[tox]
envlist = py310, linting
skipsdist = True

[testenv]
deps =
-rrequirements.txt
pytest
coverage
skip_install = True
commands =
coverage run -m pytest -s
coverage report -m --omit=tests/*
Expand Down

0 comments on commit fa87067

Please sign in to comment.