@@ -55,6 +55,28 @@ def test_install_project(self):
55
55
config = ConfigWrapper (version = self .version , yaml_config = yaml_config )
56
56
self .assertEqual (config .install_project , False )
57
57
58
+ def test_extra_requirements (self ):
59
+ yaml_config = get_build_config ({'python' : {
60
+ 'pip_install' : True ,
61
+ 'extra_requirements' : ['tests' , 'docs' ]}})
62
+ config = ConfigWrapper (version = self .version , yaml_config = yaml_config )
63
+ self .assertEqual (config .extra_requirements , ['tests' , 'docs' ])
64
+
65
+ yaml_config = get_build_config ({'python' : {
66
+ 'extra_requirements' : ['tests' , 'docs' ]}})
67
+ config = ConfigWrapper (version = self .version , yaml_config = yaml_config )
68
+ self .assertEqual (config .extra_requirements , [])
69
+
70
+ yaml_config = get_build_config ({})
71
+ config = ConfigWrapper (version = self .version , yaml_config = yaml_config )
72
+ self .assertEqual (config .extra_requirements , [])
73
+
74
+ yaml_config = get_build_config ({'python' : {
75
+ 'setup_py_install' : True ,
76
+ 'extra_requirements' : ['tests' , 'docs' ]}})
77
+ config = ConfigWrapper (version = self .version , yaml_config = yaml_config )
78
+ self .assertEqual (config .extra_requirements , [])
79
+
58
80
def test_conda (self ):
59
81
to_find = 'urls.py'
60
82
yaml_config = get_build_config ({'conda' : {'file' : to_find }})
0 commit comments