Пример #1
0
    def setUpClass(cls):
        """Set up the test class with required objects."""
        super().setUpClass()

        cls.accessor = AzureReportDBAccessor("acct10001")
        cls.report_schema = cls.accessor.report_schema
        cls.all_tables = list(AZURE_REPORT_TABLE_MAP.values())
        cls.creator = ReportObjectCreator(cls.schema)
        cls.date_accessor = DateHelper()
        cls.manifest_accessor = ReportManifestDBAccessor()
    def setUpClass(cls):
        """Set up the test class with required objects."""
        super().setUpClass()
        with ReportingCommonDBAccessor() as report_common_db:
            cls.column_map = report_common_db.column_map

        cls.accessor = AzureReportDBAccessor("acct10001", cls.column_map)
        cls.report_schema = cls.accessor.report_schema
        cls.all_tables = list(AZURE_REPORT_TABLE_MAP.values())
        cls.creator = ReportObjectCreator(cls.schema, cls.column_map)
        cls.date_accessor = DateAccessor()
        cls.manifest_accessor = ReportManifestDBAccessor()
Пример #3
0
 def setUpClass(cls):
     """Set up the test class with required objects."""
     super().setUpClass()
     cls.accessor = AzureReportDBAccessor(schema=cls.schema)
     cls.report_schema = cls.accessor.report_schema
     cls.creator = ReportObjectCreator(cls.schema)
     cls.all_tables = list(AZURE_REPORT_TABLE_MAP.values())
     cls.foreign_key_tables = [
         AZURE_REPORT_TABLE_MAP["bill"],
         AZURE_REPORT_TABLE_MAP["product"],
         AZURE_REPORT_TABLE_MAP["meter"],
     ]
Пример #4
0
 def setUpClass(cls):
     """Set up the test class with required objects."""
     super().setUpClass()
     cls.common_accessor = ReportingCommonDBAccessor()
     cls.column_map = cls.common_accessor.column_map
     cls.accessor = AzureReportDBAccessor(schema=cls.schema, column_map=cls.column_map)
     cls.report_schema = cls.accessor.report_schema
     cls.creator = ReportObjectCreator(cls.schema, cls.column_map)
     cls.all_tables = list(AZURE_REPORT_TABLE_MAP.values())
     cls.foreign_key_tables = [
         AZURE_REPORT_TABLE_MAP['bill'],
         AZURE_REPORT_TABLE_MAP['product'],
         AZURE_REPORT_TABLE_MAP['meter'],
     ]