Skip to content

Commit a2b0455

Browse files
committed
CLI test: python logya/main.py -> logya
1 parent 225fd3f commit a2b0455

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_cli.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ def run(command):
77

88

99
def test_generate():
10-
out = run('python logya/main.py gen --dir-site logya/sites/docs')
10+
out = run('logya gen --dir-site logya/sites/docs')
1111
assert out.returncode == 0
1212
assert 'write pages' in out.stdout.lower()
1313

1414

1515
def test_generate_wrong_dir():
16-
out = run('python logya/main.py gen --dir-site .')
16+
out = run('logya gen --dir-site .')
1717
assert out.returncode == 1
1818
assert 'error' in out.stderr.lower()
1919

2020

2121
def test_create():
22-
out = run('python logya/main.py create test_create_site --dir-site tests/fixtures/')
22+
out = run('logya create test_create_site --dir-site tests/fixtures/')
2323
assert out.returncode == 0
2424
assert 'site created' in out.stdout.lower()
2525

2626
# Second time must fail
27-
out2 = run('python logya/main.py create test_create_site --dir-site tests/fixtures/')
27+
out2 = run('logya create test_create_site --dir-site tests/fixtures/')
2828
assert out2.returncode == 1
2929
assert 'already exists' in out2.stderr.lower()
3030

0 commit comments

Comments
 (0)