Skip to content

Commit

Permalink
allow to use doc argument anywhere (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jupe committed Oct 10, 2020
1 parent 526df18 commit 1e0af81
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion RobotLockable/Remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def generate_doc(doc):
@click.option('--host', default='127.0.0.1', help='Interface to listen. '
'Use "0.0.0.0" to get access from external machines')
@click.option('--hostname', default=socket.gethostname(), help='Hostname')
@click.option('--resources_list_file', default='resource.json', help='Resources list file')
@click.option('--resources_list_file', default=None, help='Resources list file. Required.')
@click.option('--lock_folder', default='.', help='Lock folder')
@click.option('--doc', help='generate documentation. E.g. doc.html or list')
# pylint:disable=too-many-arguments
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
setup_requires=["setuptools_scm"],
install_requires=[
"robotframework",
"lockable==0.2.0",
"lockable==0.3.0",
"click",
"retry",
"robotremoteserver",
Expand Down
3 changes: 0 additions & 3 deletions test/test_lockable.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,4 @@ def test_remote_lib(self):

def test_doc_gen(self):
html_file = abspath(join(root_dir, 'api.html'))
cur_dir = os.getcwd()
os.chdir(join(root_dir, 'example'))
self.assertEqual(generate_doc(html_file), 0)
os.chdir(cur_dir)

0 comments on commit 1e0af81

Please sign in to comment.