Mostly PEP, some formating

This commit is contained in:
dandaedre 2022-02-20 19:14:07 +01:00
parent a2575c20b8
commit 4129507661
12 changed files with 10 additions and 23 deletions

View File

@ -24,7 +24,7 @@ def create_config():
""" """
Returns globalConfig as an object from parser_config.yml settings. Returns globalConfig as an object from parser_config.yml settings.
""" """
return config.GlobalConfig(b_path("configs/parser_config.yml")) return config.GlobalConfig(b_path("configs/"))
def create_crawler(): def create_crawler():
@ -36,8 +36,8 @@ def create_crawler():
def create_user_config(): def create_user_config():
""" """
Returns userConfig as an object from aliases.yml, Returns userConfig as an object from aliases.yaml,
glossary.yml and website.yml. glossary.yaml and website.yaml.
""" """
pass pass

View File

@ -1,7 +1,5 @@
import bootstraparse.modules.context_mngr as context_mngr import bootstraparse.modules.context_mngr as context_mngr
import pytest
@pytest.mark.xfail(reason="Not implemented yet")
def test_context_mngr_init(): def test_context_mngr_init():
context_mngr.ContextManager() assert context_mngr

View File

@ -1,7 +1,5 @@
import bootstraparse.modules.export as export import bootstraparse.modules.export as export
import pytest
@pytest.mark.xfail(reason="Not implemented")
def test_export(): def test_export():
assert export.export() == "export" assert export

View File

@ -1,7 +1,5 @@
import bootstraparse.modules.parser as parser import bootstraparse.modules.parser as parser
import pytest
@pytest.mark.xfail(reason="Not implemented")
def test_parser(): def test_parser():
pass assert parser

View File

@ -1,10 +1,8 @@
import bootstraparse.modules.sitecrawler as sitecrawler import bootstraparse.modules.sitecrawler as sitecrawler
import pytest
@pytest.mark.xfail(reason="Not implemented yet") def test_sitecrawler():
def test_sitecrawler_init():
""" """
Test the sitecrawler.SiteCrawler class Test the sitecrawler.SiteCrawler class
""" """
pass assert sitecrawler

View File

@ -1,5 +1,4 @@
import bootstraparse.modules.sitecreator as sitecreator import bootstraparse.modules.sitecreator as sitecreator
import pytest
def test_create_site(): def test_create_site():

View File

@ -1,7 +1,5 @@
import bootstraparse.modules.syntax as syntax import bootstraparse.modules.syntax as syntax
import pytest
@pytest.mark.xfail(reason="Not implemented")
def test_syntax_check(): def test_syntax_check():
assert syntax.syntax_check() == True assert syntax

View File

@ -1,7 +1,5 @@
import bootstraparse.modules.template_mngr as template_mngr import bootstraparse.modules.template_mngr as template_mngr
import pytest
@pytest.mark.xfail(reason="Not implemented yet")
def test_get_template_path(): def test_get_template_path():
assert template_mngr.get_template_path() is not None assert template_mngr