Skip to content

Commit

Permalink
use tomlkit
Browse files Browse the repository at this point in the history
  • Loading branch information
grizz committed Feb 5, 2024
1 parent c85b6d2 commit de29d3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_plugin_semver2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import shutil

import pytest
import toml
import tomlkit
from util import instantiate_semver2 as instantiate

import ctl
Expand Down Expand Up @@ -50,7 +50,7 @@ def test_tag_pyproject(tmpdir, ctlr):

plugin.tag(version="2.0.0", repo="dummy_repo", prerelease="rc")

pyproject = toml.load(pyproject_path)
pyproject = tomlkit.load(pyproject_path)
assert pyproject["tool"]["poetry"]["version"] == "2.0.0-rc.1"


Expand Down
4 changes: 2 additions & 2 deletions tests/test_plugin_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import shutil

import pytest
import toml
import tomlkit
from util import instantiate_version as instantiate

import ctl
Expand Down Expand Up @@ -48,7 +48,7 @@ def test_tag_pyproject(tmpdir, ctlr):

plugin.tag(version="2.0.0", repo="dummy_repo")

pyproject = toml.load(pyproject_path)
pyproject = tomlkit.load(pyproject_path)
assert pyproject["tool"]["poetry"]["version"] == "2.0.0"


Expand Down

0 comments on commit de29d3c

Please sign in to comment.