Mostly PEP, some formating
This commit is contained in:
parent
a2575c20b8
commit
4129507661
|
|
@ -24,7 +24,7 @@ def create_config():
|
|||
"""
|
||||
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():
|
||||
|
|
@ -36,8 +36,8 @@ def create_crawler():
|
|||
|
||||
def create_user_config():
|
||||
"""
|
||||
Returns userConfig as an object from aliases.yml,
|
||||
glossary.yml and website.yml.
|
||||
Returns userConfig as an object from aliases.yaml,
|
||||
glossary.yaml and website.yaml.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import bootstraparse.modules.context_mngr as context_mngr
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="Not implemented yet")
|
||||
def test_context_mngr_init():
|
||||
context_mngr.ContextManager()
|
||||
assert context_mngr
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import bootstraparse.modules.export as export
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="Not implemented")
|
||||
def test_export():
|
||||
assert export.export() == "export"
|
||||
assert export
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import bootstraparse.modules.parser as parser
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="Not implemented")
|
||||
def test_parser():
|
||||
pass
|
||||
assert parser
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
import bootstraparse.modules.sitecrawler as sitecrawler
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="Not implemented yet")
|
||||
def test_sitecrawler_init():
|
||||
def test_sitecrawler():
|
||||
"""
|
||||
Test the sitecrawler.SiteCrawler class
|
||||
"""
|
||||
pass
|
||||
assert sitecrawler
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import bootstraparse.modules.sitecreator as sitecreator
|
||||
import pytest
|
||||
|
||||
|
||||
def test_create_site():
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import bootstraparse.modules.syntax as syntax
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="Not implemented")
|
||||
def test_syntax_check():
|
||||
assert syntax.syntax_check() == True
|
||||
assert syntax
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import bootstraparse.modules.template_mngr as template_mngr
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="Not implemented yet")
|
||||
def test_get_template_path():
|
||||
assert template_mngr.get_template_path() is not None
|
||||
assert template_mngr
|
||||
|
|
|
|||
Loading…
Reference in New Issue