Skip to content

Commit

Permalink
add test functionality [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
naesheim committed Feb 24, 2021
1 parent 062e0d1 commit 68c09b1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
venv/
.venv/
*.zip
.vscode
.DS_store
Expand Down
Binary file modified test/.coverage
Binary file not shown.
Empty file added test/__init__.py
Empty file.
6 changes: 3 additions & 3 deletions test/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from functionhub.main import fuhub, Global
from functionhub.main import fuhub
from click.testing import CliRunner

test_folder = 'example'
Expand Down Expand Up @@ -31,10 +31,10 @@ def test_upload_package():
runner = CliRunner()
result = runner.invoke(fuhub, ['-f', 'example/config.ini', 'upload',f"{test_folder}.zip"])

assert result.output == f"upload function hello-world to repository my-public-functions\n502\n"
assert result.output == f"upload function hello-world to repository my-public-functions\nSize limitation, consider a paid subscription\n"

def test_upload_package_with_missing_config_file():
runner = CliRunner()
result = runner.invoke(fuhub, ['upload',f"{test_folder}.zip"])

assert result.exception
assert result.exception

0 comments on commit 68c09b1

Please sign in to comment.