Skip to content

Commit

Permalink
remove unittests because not have time for test all functions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew (from workstation) committed Jan 1, 2021
1 parent 2f24008 commit 0a9a454
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 317 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/setuptools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ jobs:
python setup.py sdist bdist_wheel
find dist -name "*.whl" -type f -exec pip install {} \;
shell: bash

- name: unittest
run: smart_tv_telegram_tests

1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
aiohttp==3.7.3
aiounittest==1.4.0
async-generator==1.10
async-lru==1.0.2
async-timeout==3.0.1
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
entry_points={
"console_scripts": [
"smart_tv_telegram=smart_tv_telegram.__main__:arg_parser",
"smart_tv_telegram_tests=smart_tv_telegram.__main__:unit_test"
],
},
include_package_data=True
Expand Down
15 changes: 0 additions & 15 deletions smart_tv_telegram/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
import logging
import argparse
import os.path
import unittest

from smart_tv_telegram import Http, Mtproto, Config, Bot
from smart_tv_telegram.devices import FINDERS
from smart_tv_telegram.tests import test_tools, test_http


def open_config(parser: argparse.ArgumentParser, arg: str) -> Config:
Expand Down Expand Up @@ -44,19 +42,6 @@ def main(config: Config):
loop.run_until_complete(async_main(config))


def unit_test():
loader = unittest.TestLoader()
suite = unittest.TestSuite()

# noinspection PyTypeChecker
suite.addTests(loader.loadTestsFromModule(test_tools))
# noinspection PyTypeChecker
suite.addTests(loader.loadTestsFromModule(test_http))

runner = unittest.TextTestRunner(verbosity=3)
runner.run(suite)


def arg_parser():
parser = argparse.ArgumentParser()
parser.add_argument("-c", "--config", type=lambda x: open_config(parser, x), default="config.ini")
Expand Down
Empty file.
229 changes: 0 additions & 229 deletions smart_tv_telegram/tests/test_http.py

This file was deleted.

67 changes: 0 additions & 67 deletions smart_tv_telegram/tests/test_tools.py

This file was deleted.

0 comments on commit 0a9a454

Please sign in to comment.