Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asr-benchmarks
Manage
Activity
Members
Labels
Plan
Issues
8
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcin Wątroba
asr-benchmarks
Commits
6f4231e1
Unverified
Commit
6f4231e1
authored
3 years ago
by
Marcin Wątroba
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests
parent
92281d5d
Branches
Branches containing commit
2 merge requests
!4
Feature/add poetry
,
!3
Add ids to words
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_sziszapangma.py
+0
-36
0 additions, 36 deletions
tests/test_sziszapangma.py
with
0 additions
and
36 deletions
tests/test_sziszapangma.py
deleted
100644 → 0
+
0
−
36
View file @
92281d5d
#!/usr/bin/env python
"""
Tests for `sziszapangma` package.
"""
import
pytest
from
click.testing
import
CliRunner
from
sziszapangma.core
import
cli
@pytest.fixture
def
response
():
"""
Sample pytest fixture.
See more at: http://doc.pytest.org/en/latest/fixture.html
"""
# import requests
# return requests.get('https://github.com/audreyr/cookiecutter-pypackage')
def
test_content
(
response
):
"""
Sample pytest test function with the pytest fixture as an argument.
"""
# from bs4 import BeautifulSoup
# assert 'GitHub' in BeautifulSoup(response.content).title.string
def
test_command_line_interface
():
"""
Test the CLI.
"""
runner
=
CliRunner
()
result
=
runner
.
invoke
(
cli
.
main
)
assert
result
.
exit_code
==
0
assert
'
sziszapangma.cli.main
'
in
result
.
output
help_result
=
runner
.
invoke
(
cli
.
main
,
[
'
--help
'
])
assert
help_result
.
exit_code
==
0
assert
'
--help Show this message and exit.
'
in
help_result
.
output
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment