IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 18, 2019, 10:35:56 AM (7 years ago)
Author:
fairlamb
Message:

changed the structure so that a full schema must be given, also allowed a full schema to exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ipp-259_genericise_backups/tools/backups/jira_backup_test.py

    r40944 r40949  
    66from pathlib import Path
    77
     8import backups.backup as bckup
    89import backups.jira_backup as jbck_mod
    910import backups.utils.errors as errs
    1011from backups.jira_backup import JiraBackup
    1112from backups.utils.errors import ValidationError
    12 
     13from backups.utils.config_parse_helper import ConfigSchema
    1314
    1415JIRA_TEST_CONFIG = os.path.join(os.path.dirname(__file__), './testing/jira_test.config')
     
    146147            }
    147148
    148         jb = JiraBackup(config_file=config)
     149        schema = ConfigSchema(None)
     150        schema.add_section(bckup.DEFAULT_SCHEMA_SECTION)
     151        schema.add_section(bckup.COPY_SCHEMA_SECTION)
     152        schema.add_section(bckup.TAR_SCHEMA_SECTION)
     153
     154        jb = JiraBackup(config, schema)
    149155
    150156        assert jb.default_dict == \
     
    212218        assert not os.path.exists(expected_backup_2_copy)
    213219
     220        assert jb.should_run_copy is True
    214221        return_value = jb._run_copy()
    215222        assert return_value == 0
Note: See TracChangeset for help on using the changeset viewer.