Skip to content

Commit

Permalink
Change test folder to package to allow relative imports (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
akosthekiss authored Dec 11, 2023
1 parent 738d636 commit 4314fed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2023 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.

# INTENTIONALLY EMPTY
4 changes: 2 additions & 2 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2017 Renata Hodovan, Akos Kiss.
# Copyright (c) 2017-2023 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
Expand All @@ -8,7 +8,7 @@
import os
import pytest

from run_grammars import collect_grammar_commands, run_grammar
from .run_grammars import collect_grammar_commands, run_grammar


grammars_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'examples', 'grammars')
Expand Down
4 changes: 2 additions & 2 deletions tests/test_grammars.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2017 Renata Hodovan, Akos Kiss.
# Copyright (c) 2017-2023 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
Expand All @@ -8,7 +8,7 @@
import os
import pytest

from run_grammars import collect_grammar_commands, run_grammar
from .run_grammars import collect_grammar_commands, run_grammar


grammars_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'grammars')
Expand Down

0 comments on commit 4314fed

Please sign in to comment.