diff --git a/CHANGELOG.md b/CHANGELOG.md index 9465bac..daed1c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ - Test dbt v1.7 ([PR](https://github.com/godatadriven/pytest-dbt-core/pull/48)) +- Make pytest `parser.addoption` type a function ([PR](https://github.com/godatadriven/pytest-dbt-core/pull/51)) ## [0.2.3] - 2023-08-25 diff --git a/src/pytest_dbt_core/plugin.py b/src/pytest_dbt_core/plugin.py index 5512c7b..50b10d7 100644 --- a/src/pytest_dbt_core/plugin.py +++ b/src/pytest_dbt_core/plugin.py @@ -26,16 +26,16 @@ def pytest_addoption(parser: Parser) -> None: parser.addoption( "--dbt-project-dir", help="The dbt project directory.", - type="string", + type=str, default=os.getcwd(), ) parser.addoption( "--dbt-target", help="Which target to load for the given profile", - type="string", + type=str, ) parser.addoption( "--profiles-dir", help="Which directory to look in for the profiles.yml file", - type="string", + type=str, )