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/confluence_backup_test.py

    r40944 r40949  
    66from pathlib import Path
    77
     8import backups.backup as bckup
    89import backups.confluence_backup as jbck_mod
    910import backups.utils.errors as errs
    1011from backups.confluence_backup import ConfluenceBackup
    1112from backups.utils.errors import ValidationError
    12 
     13from backups.utils.config_parse_helper import ConfigSchema
    1314
    1415CONF_TEST_CONFIG = os.path.join(os.path.dirname(__file__), './testing/confluence_test.config')
     
    146147            }
    147148
    148         jb = ConfluenceBackup(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 = ConfluenceBackup(config, schema)
    149155
    150156        assert jb.default_dict == \
Note: See TracChangeset for help on using the changeset viewer.