Skip to content

Commit

Permalink
[test] solve lint warnings and update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apalala committed Nov 29, 2023
1 parent 0cc8f0d commit 1deaee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tatsu/ngcodegen/objectmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, parser_name: str = '', base_type: type = objectmodel.Node):

def generate_model(self, grammar: grammars.Grammar):
base_type = self.base_type
base_type_import = f'from {base_type.__module__} import {base_type.__name__.split('.')[-1]}'
base_type_import = f"from {base_type.__module__} import {base_type.__name__.split('.')[-1]}"

self.parser_name = self.parser_name or grammar.name
self.print(
Expand Down
2 changes: 1 addition & 1 deletion test/grammar/parameter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_keyword_params(self):
g = GrammarGenerator('Keywords')
model = g.parse(grammar)
code = codegen(model)
self.assertEqual('#!/usr/bin/env python', code.splitlines()[0])
self.assertEqual('#!/usr/bin/env python3', code.splitlines()[0])

def test_35_only_keyword_params(self):
grammar = """
Expand Down

0 comments on commit 1deaee3

Please sign in to comment.