Skip to content

Commit 0b27f78

Browse files
mumblepinskddejong
authored andcommitted
missed tests fixed
1 parent 510cee6 commit 0b27f78

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
@@ -172,7 +172,7 @@ def generate(self, project):
172172

173173
if project.configuration_schema:
174174
configuration_schema_path = (
175-
project.root / project.configuration_schema_filename
175+
project.root / project.configuration_schema_filename
176176
)
177177
project.write_configuration_schema(configuration_schema_path)
178178
configuration_models = resolve_models(

tests/plugin/parser_test.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import argparse
22

3-
from rpdk.python.parser import setup_subparser_python36, setup_subparser_python37
3+
from rpdk.python.parser import (
4+
setup_subparser_python36,
5+
setup_subparser_python37,
6+
setup_subparser_python38,
7+
setup_subparser_python39,
8+
)
49

510

611
def test_setup_subparser_python36():
@@ -25,3 +30,27 @@ def test_setup_subparser_python37():
2530

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

0 commit comments

Comments
 (0)