Skip to content

Commit

Permalink
putting default ini files of test grammar files
Browse files Browse the repository at this point in the history
  • Loading branch information
quintijn committed Jan 7, 2023
1 parent 8c11cee commit 6deadcf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/unimacro/natlinkutilsbj.py
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,7 @@ def startInifile(self, modName=None):
self.checkForChanges = 1
self.openedInifile = 0
self.ignore = None
modName = modName or self.__module__.rsplit('.', maxsplit=1)[-1]
modName = self.name or modName or self.__module__.rsplit('.', maxsplit=1)[-1]
# baseDir = status.getUnimacroDirectory()
userDir = status.getUnimacroUserDirectory()

Expand Down
6 changes: 6 additions & 0 deletions src/unimacro/sample_ini/enx_inifiles/_gramoff.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[general]
initial on = 1

[grammar name]
name = grammaroff
testname = test_grammaroff
5 changes: 5 additions & 0 deletions src/unimacro/sample_ini/enx_inifiles/_gramon.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[general]
initial on = 1

[grammar name]
name = grammaron
1 change: 1 addition & 0 deletions tests/test_grammar_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ def test_getLineRelativeTo():

if __name__ == "__main__":
pytest.main(['test_grammar_lines.py'])

0 comments on commit 6deadcf

Please sign in to comment.