Skip to content

Commit

Permalink
test using babelize sample-config with init and update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcflugen committed Mar 12, 2024
1 parent 7e3c0bb commit 4715487
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,16 @@ def test_cli(session: nox.Session) -> None:
session.run("babelize", "--help")
session.run("babelize", "init", "--help")
session.run("babelize", "update", "--help")
session.run("babelize", "generate", "--help")
session.run("babelize", "generate")
session.run("babelize", "sample-config", "--help")

with session.chdir(session.create_tmp()):
with open("babel.toml", "w") as fp:
session.run("babelize", "sample-config", stdout=fp)
new_folder = session.run(
"babelize", "init", "babel.toml", "--quiet", silent=True
).strip()
with session.chdir(new_folder):
session.run("babelize", "update", "--set-version=0.1.1")


@nox.session
Expand Down

0 comments on commit 4715487

Please sign in to comment.