Browse Source

Rename subsection -> key in tests

Thomas Kluyver 11 years ago
parent
commit
9ad8683e19

+ 2 - 2
nsist/tests/data_files/invalid_config_subsection.cfg → nsist/tests/data_files/invalid_config_key.cfg

@@ -4,7 +4,7 @@ version=1.0
 # How to launch the app - this calls the 'main' function from the 'myapp' package:
 entry_point=myapp:main
 icon=myapp.ico
-this_subsection=is_invalid
+this_key=is_invalid
 
 [Python]
 version=3.4.0
@@ -17,4 +17,4 @@ packages = requests
 
 # Other files and folders that should be installed
 files = LICENSE
-    data_files/
+    data_files/

+ 0 - 0
nsist/tests/data_files/missing_config_subsection.cfg → nsist/tests/data_files/missing_config_key.cfg


+ 4 - 4
nsist/tests/test_configuration_validator.py

@@ -19,13 +19,13 @@ def test_invalid_config_keys():
     configreader.read_and_validate(configfile)
 
 @raises(configreader.InvalidConfig)
-def test_invalid_config_subsection():
-    configfile = os.path.join(DATA_FILES, 'invalid_config_subsection.cfg')
+def test_invalid_config_key():
+    configfile = os.path.join(DATA_FILES, 'invalid_config_key.cfg')
     configreader.read_and_validate(configfile)
 
 @raises(configreader.InvalidConfig)
-def test_missing_config_subsection():
-    configfile = os.path.join(DATA_FILES, 'missing_config_subsection.cfg')
+def test_missing_config_key():
+    configfile = os.path.join(DATA_FILES, 'missing_config_key.cfg')
     configreader.read_and_validate(configfile)
 
 @raises(configparser.Error)