Skip to content

v0.6.0

Compare
Choose a tag to compare
@Somtom Somtom released this 28 Jan 09:11
· 13 commits to main since this release

Changelog

Added

Changed

  • ColumnMock nullable by default

Breaking Changes

  • Path to dbt project.yml file is provided instead of manifest.json
  • Array types use other ColumnMock classes as inner type
  • Consistent naming of TableMock classes:
    • BaseMockTable -> BaseTableMock
    • BigQueryMockTable -> BigQueryTableMock
    • RedshiftMockTable -> RedshiftTableMock
    • SnowflakeMockTable -> SnowflakeTableMock

Fixed

  • Failing on mixed None values #34

Migration guide to v0.6.0

Rename the usage of Table Mock classes

Since fixed the inconsistent naming for Table Mocks, you need to make sure to rename your base classes wherever used:

  • BaseMockTable -> BaseTableMock
  • BigQueryMockTable -> BigQueryTableMock
  • RedshiftMockTable -> RedshiftTableMock
  • SnowflakeMockTable -> SnowflakeTableMock

Dbt projects

Previously for dbt project you would provide the path to your manifest file. This now needs to change to provide the path to the dbt_project.yml

from sql_mock.config import SQLMockConfig

SQLMockConfig.set_dbt_project_path('/path/to/your/dbt_project.yml')

Full Changelog: v0.5.4...v0.6.0