File tree Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Expand file tree Collapse file tree 2 files changed +8
-18
lines changed Original file line number Diff line number Diff line change 3434
3535from spellchecker import SpellChecker
3636
37-
38- # Insert the root directory of the project to the system path
39- current_script_path = os .path .abspath (__file__ )
40- parent_directory = os .path .dirname (current_script_path )
41- sys .path .insert (0 , parent_directory + "/../" )
42-
43- from comment_spell_check .utils import parseargs # noqa: E402
44- from comment_spell_check .utils import bibtex_loader # noqa: E402
45- from comment_spell_check .utils import create_checker # noqa: E402
46- from comment_spell_check .utils import url_remove # noqa: E402
37+ from comment_spell_check .utils import parseargs
38+ from comment_spell_check .utils import bibtex_loader
39+ from comment_spell_check .utils import create_checker
40+ from comment_spell_check .utils import url_remove
4741
4842__version__ = "unknown"
4943
Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ def test_basic(self):
3434 """Basic test"""
3535 runresult = subprocess .run (
3636 [
37- sys .executable ,
38- "comment_spell_check.py" ,
37+ "comment_spell_check" ,
3938 "--miss" ,
4039 "--dict" ,
4140 "../tests/dict.txt" ,
@@ -52,8 +51,7 @@ def test_codebase(self):
5251 """Code base test"""
5352 runresult = subprocess .run (
5453 [
55- sys .executable ,
56- "comment_spell_check.py" ,
54+ "comment_spell_check" ,
5755 "--verbose" ,
5856 "--prefix" ,
5957 "myprefix" ,
@@ -72,8 +70,7 @@ def test_version(self):
7270 """Version test"""
7371 runresult = subprocess .run (
7472 [
75- sys .executable ,
76- "comment_spell_check.py" ,
73+ "comment_spell_check" ,
7774 "--version" ,
7875 ],
7976 cwd = "comment_spell_check" ,
@@ -90,8 +87,7 @@ def test_bibtex(self):
9087 """Bibtext test"""
9188 runresult = subprocess .run (
9289 [
93- sys .executable ,
94- "comment_spell_check.py" ,
90+ "comment_spell_check" ,
9591 "--bibtex" ,
9692 "../tests/itk.bib" ,
9793 "../tests/bibtest.py" ,
You can’t perform that action at this time.
0 commit comments