Skip to content

Commit

Permalink
Pass method to parser.addoption (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond authored Jun 2, 2024
1 parent ef116b2 commit c51f8ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/pytest_dbt_core/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit c51f8ef

Please sign in to comment.