-
Notifications
You must be signed in to change notification settings - Fork 902
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pytest: add tests for pip and poetry installed virtual envs
Also test checkout of a git tag on installation.
- Loading branch information
1 parent
0b26c5b
commit 0e0c3b5
Showing
6 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pyln-client | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/data/recklessrepo/lightningd/testplugpyproj/pyproject.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[project] | ||
dependencies = ["pyln-client"] | ||
|
||
[tool.poetry] | ||
name = "testplugpyproj" | ||
version = "0.1.0" | ||
description = "testing poetry installation of python plugins" | ||
authors = ["Alex Myers <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
# Build dependencies belong here | ||
python = "^3.8" | ||
pyln-client = "^23.11" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
17 changes: 17 additions & 0 deletions
17
tests/data/recklessrepo/lightningd/testplugpyproj/testplugpyproj.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python3 | ||
from pyln.client import Plugin | ||
|
||
plugin = Plugin() | ||
|
||
|
||
@plugin.init() | ||
def init(options, configuration, plugin, **kwargs): | ||
plugin.log("testplug initialized") | ||
|
||
|
||
@plugin.method("testmethod") | ||
def testmethod(plugin): | ||
return ("I live.") | ||
|
||
|
||
plugin.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters