Skip to content

Commit 5daf200

Browse files
mumblepinskddejong
authored andcommitted
missed tests fixed
1 parent 7603ebe commit 5daf200

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

python/rpdk/python/codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def generate(self, project):
171171

172172
if project.configuration_schema:
173173
configuration_schema_path = (
174-
project.root / project.configuration_schema_filename
174+
project.root / project.configuration_schema_filename
175175
)
176176
project.write_configuration_schema(configuration_schema_path)
177177
configuration_models = resolve_models(

tests/plugin/parser_test.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import argparse
2-
from rpdk.python.parser import setup_subparser_python36, setup_subparser_python37
2+
from rpdk.python.parser import (
3+
setup_subparser_python36,
4+
setup_subparser_python37,
5+
setup_subparser_python38,
6+
setup_subparser_python39,
7+
)
38

49

510
def test_setup_subparser_python36():
@@ -24,3 +29,27 @@ def test_setup_subparser_python37():
2429

2530
assert args.language == "python37"
2631
assert args.use_docker is False
32+
33+
34+
def test_setup_subparser_python38():
35+
parser = argparse.ArgumentParser()
36+
subparsers = parser.add_subparsers(dest="subparser_name")
37+
38+
sub_parser = setup_subparser_python38(subparsers, [])
39+
40+
args = sub_parser.parse_args([])
41+
42+
assert args.language == "python38"
43+
assert args.use_docker is False
44+
45+
46+
def test_setup_subparser_python39():
47+
parser = argparse.ArgumentParser()
48+
subparsers = parser.add_subparsers(dest="subparser_name")
49+
50+
sub_parser = setup_subparser_python39(subparsers, [])
51+
52+
args = sub_parser.parse_args([])
53+
54+
assert args.language == "python39"
55+
assert args.use_docker is False

0 commit comments

Comments
 (0)