Skip to content

Commit

Permalink
test(decli): add tests for decli
Browse files Browse the repository at this point in the history
  • Loading branch information
davejames committed Oct 5, 2024
1 parent 8d3b39a commit bf567c2
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/decli-pre-0_6_2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ poetry2nix, python310, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
python = python310;
};
in
runCommand "decli-pre-0_6_2-test" { } ''
${env}/bin/python -c 'import decli'
touch $out
''
17 changes: 17 additions & 0 deletions tests/decli-pre-0_6_2/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tests/decli-pre-0_6_2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "decli-pre-0_6_2"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
decli = "<0.6.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
11 changes: 11 additions & 0 deletions tests/decli/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ poetry2nix, python310, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
python = python310;
};
in
runCommand "decli-test" { } ''
${env}/bin/python -c 'import decli'
touch $out
''
17 changes: 17 additions & 0 deletions tests/decli/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tests/decli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "decli-tests"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
decli = ">=0.6.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
2 changes: 2 additions & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ in
jupyter-ydoc = callTest ./jupyter-ydoc { };
mutmut = callTest ./mutmut { };
procrastinate = callTest ./procrastinate { };
decli = callTest ./decli { };
decli-pre-0_6_2 = callTest ./decli-pre-0_6_2 { };
pytest-redis = callTest ./pytest-redis { };
pylint-django = callTest ./pylint-django { };
pylint-django-pre-2-5-4 = callTest ./pylint-django-pre-2-5-4 { };
Expand Down

0 comments on commit bf567c2

Please sign in to comment.