Skip to content

Commit

Permalink
review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
d-w-moore committed Jul 19, 2024
1 parent 5678af0 commit 6572f09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion irods/test/data_obj_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2024,11 +2024,12 @@ def test_settings_load_and_save_471(self):
config.load(**load_logging_options)
self.assertTrue(config.data_objects.auto_close, RANDOM_VALUE - i - 1)

@unittest.skipIf(os.environ.get("PYTHON_IRODSCLIENT_CONFIGURATION_PATH",None) is not None,"test will not run if configuration file set.")
def test_setting_xml_parser_choice_by_environment_only__issue_584(self):
program = os.path.join(test_modules.__path__[0], 'test_xml_parser.py')
xml_parser_control_var = 'PYTHON_IRODSCLIENT_CONFIG__CONNECTIONS__XML_PARSER_DEFAULT'
with helpers.environment_variable_backed_up(xml_parser_control_var):
for alternate_setting in ('QUASI_XML','STANDARD_XML', 'SECURE_XML'):
for alternate_setting in ('QUASI_XML', 'STANDARD_XML', 'SECURE_XML'):
# Set xml parser for the process to be spawned.
os.environ[xml_parser_control_var]="'{alternate_setting}'".format(**locals())
# Run a simple script that imports PRC and prints which XML parser is the active default.
Expand Down
2 changes: 2 additions & 0 deletions irods/test/modules/test_xml_parser.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
import irods
# Used in test of:
# irods.test.data_obj_test.TestDataObjOps.test_setting_xml_parser_choice_by_environment_only__issue_584
print(irods.client_configuration.connections.xml_parser_default)

0 comments on commit 6572f09

Please sign in to comment.