Skip to content

Commit

Permalink
refactor: change default production flag to False and fix typo in tes…
Browse files Browse the repository at this point in the history
…t assertion

Signed-off-by: Jos Verlinde <[email protected]>
  • Loading branch information
Josverl committed Dec 11, 2024
1 parent 2f71836 commit 10ab800
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/stubber/commands/publish_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def cli_publish(
versions: Union[str, List[str]],
ports: Union[str, List[str]],
boards: Union[str, List[str]],
production: bool = True,
production: bool = False,
build: bool = False,
force: bool = False,
dry_run: bool = False,
Expand Down
3 changes: 1 addition & 2 deletions tests/publish/test_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_publish_package(
assert len(list(dist_path.glob("*.whl"))) == 1, "should be one wheel in the dist path"
assert len(list(dist_path.glob("*.gz"))) == 1, "should be one tarball in the dist path"

assert not pkg.is_changed(), "should show as un changed after publish"
assert not pkg.is_changed(), "should show as unchanged after publish"

# Check if the has been published
assert m_publish.called, "should call poetry publish"
Expand All @@ -161,7 +161,6 @@ def test_publish_package(
"SELECT * FROM packages where name = ? AND mpy_version = ? ORDER by pkg_version DESC",
(pkg.package_name, pkg.mpy_version),
)
cursor.row_factory = sqlite3.Row # to get dict like access
recs = cursor.fetchall()

row = recs[0]
Expand Down

0 comments on commit 10ab800

Please sign in to comment.