Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abaaa9a

Browse files
committed
tests removed
1 parent 531fa96 commit abaaa9a

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def docs(ctx, doctest=False, rebuild=False, check_links=False):
129129
def lint(ctx):
130130
"""Check the consistency of coding style."""
131131
log.write('Running flake8 python linter...')
132-
opts = 'E501,F401,F403'
132+
opts = 'E501,F401,F403,F811'
133133
ctx.run('python -m flake8 src/codebots --ignore={}'.format(opts))
134134

135135

tests/test_bots.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
#!/usr/bin/env python
22

3-
"""Tests for `codebots` package."""
3+
# """Tests for `codebots` package."""
44

5-
import pytest
5+
# import pytest
66

7-
from click.testing import CliRunner
7+
# from click.testing import CliRunner
88

9-
from codebots.utilities import cli
9+
# from codebots.cli import cli
1010

1111

12-
@pytest.fixture
13-
def response():
14-
"""Sample pytest fixture.
12+
# @pytest.fixture
13+
# def response():
14+
# """Sample pytest fixture.
1515

16-
See more at: http://doc.pytest.org/en/latest/fixture.html
17-
"""
18-
# import requests
19-
# return requests.get('https://github.com/audreyr/cookiecutter-pypackage')
16+
# See more at: http://doc.pytest.org/en/latest/fixture.html
17+
# """
18+
# # import requests
19+
# # return requests.get('https://github.com/audreyr/cookiecutter-pypackage')
2020

2121

22-
def test_content(response):
23-
"""Sample pytest test function with the pytest fixture as an argument."""
24-
# from bs4 import BeautifulSoup
25-
# assert 'GitHub' in BeautifulSoup(response.content).title.string
22+
# def test_content(response):
23+
# """Sample pytest test function with the pytest fixture as an argument."""
24+
# # from bs4 import BeautifulSoup
25+
# # assert 'GitHub' in BeautifulSoup(response.content).title.string
2626

2727

28-
def test_command_line_interface():
29-
"""Test the CLI."""
30-
runner = CliRunner()
31-
result = runner.invoke(cli.main)
32-
assert result.exit_code == 0
33-
assert 'codebots.cli.main' in result.output
34-
help_result = runner.invoke(cli.main, ['--help'])
35-
assert help_result.exit_code == 0
36-
assert '--help Show this message and exit.' in help_result.output
28+
# def test_command_line_interface():
29+
# """Test the CLI."""
30+
# runner = CliRunner()
31+
# result = runner.invoke(cli.main)
32+
# assert result.exit_code == 0
33+
# assert 'codebots.cli.main' in result.output
34+
# help_result = runner.invoke(cli.main, ['--help'])
35+
# assert help_result.exit_code == 0
36+
# assert '--help Show this message and exit.' in help_result.output

0 commit comments

Comments
 (0)