Feature/pytest (#288)

* chg: test: pytest

* chg: test: required package attrs

* fix: test: regex input

* chg: test: remove unused conftest

* chg: test: verbose on testing refreshdb

* chg: dev: sort required package

* Revert "chg: test: verbose on testing refreshdb"

This reverts commit f391b36ba4b729a67b744330d226a84b48655a7d.
This commit is contained in:
rachmadani haryono 2018-06-22 13:11:36 +08:00 committed by Arun Prakash Jana
parent 21609b07ee
commit c3d38cb17b
2 changed files with 10 additions and 7 deletions

View File

@ -16,13 +16,16 @@ with open('README.md', encoding='utf-8') as f:
long_description = f.read()
tests_require = [
'pytest-cov', 'hypothesis>=3.7.0', 'py>=1.5.0',
'beautifulsoup4>=4.6.0', 'flake8>=3.4.1', 'pylint>=1.7.2', 'PyYAML>=3.12'
'attrs>=17.4.0',
'beautifulsoup4>=4.6.0',
'flake8>=3.4.1',
'hypothesis>=3.7.0',
'py>=1.5.0',
'pylint>=1.7.2',
'pytest-cov',
'pytest>=3.4.2',
'PyYAML>=3.12',
]
if sys.version_info.major == 3 and sys.version_info.minor == 6:
tests_require.append('pytest>=3.4.2,<=3.4.3')
else:
tests_require.append('pytest>=3.4.2')
server_require = [

View File

@ -305,7 +305,7 @@ class TestBukuDb(unittest.TestCase):
for i, bookmark in enumerate(self.bookmarks):
tag_search = get_first_tag(bookmark)
# search by the domain name for url
url_search = re.match('https?://(.*)?\..*', bookmark[0]).group(1)
url_search = re.match(r'https?://(.*)?\..*', bookmark[0]).group(1)
title_search = bookmark[1]
# Expect a five-tuple containing all bookmark data
# db index, URL, title, tags, description