-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyln: Migrate testing utilities and fixtures into pyln-testing #3218
Commits on Nov 11, 2019
-
pyln: Migrate implementation from pylightning to pyln-client
This should not affect any consumer of the API since we just shift the actual implementation from one side to the other, and keep aliases in place so scripts don't break. We also bump the version number from 0.0.7.3 to 0.7.4 which allows us to be in sync with c-lightning itself, and remove the superfluous `0` in front.
Configuration menu - View commit details
-
Copy full SHA for 66f21ca - Browse repository at this point
Copy the full SHA 66f21caView commit details -
pyln-testing: Copy basic support infrastructure into pyln.testing
We'll rewrite the tests to use this infrastructure in the next commit. Changelog-Added: The new `pyln-testing` package now contains the testing infrastructure so it can be reused to test against c-lighting in external projects
Configuration menu - View commit details
-
Copy full SHA for 7203a6c - Browse repository at this point
Copy the full SHA 7203a6cView commit details -
pytest: Consolidate access to environment variables
We use `env()` to look up configuration variables and allow them to be overridden by the environment.
Configuration menu - View commit details
-
Copy full SHA for 6f9de27 - Browse repository at this point
Copy the full SHA 6f9de27View commit details -
make: Add in-tree pyln-testing to python path
We'll start relying on the in-tree version pretty soon, so we better make sure we find it.
Configuration menu - View commit details
-
Copy full SHA for b3f6b1d - Browse repository at this point
Copy the full SHA b3f6b1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ecb74be - Browse repository at this point
Copy the full SHA ecb74beView commit details -
Configuration menu - View commit details
-
Copy full SHA for e0deaa6 - Browse repository at this point
Copy the full SHA e0deaa6View commit details -
pyln: Default to DEVELOPER=0 when running outside of tree
`DEVELOPER=1` assumes that the binary has been compiled with developer set to true, which might not be the case for plugin developers. Setting this to 0 by default has no effect in c-lightning since we always at least set it in `config.vars` but may prevent some issues outside.
Configuration menu - View commit details
-
Copy full SHA for 6fc4eee - Browse repository at this point
Copy the full SHA 6fc4eeeView commit details -
pyln: Move RPC and daemon instantiation into the LightningNode
We were relying heavily on NodeFactory to do some magic before instantiating the Node with rpc and daemon initialized, that meant that we'd have to replace all 3 classes when customizing the node to our needs. Moving that initialization into the node itself means that the LightningNode class now can be swapped out and customized, without having to wire everything else through.
Configuration menu - View commit details
-
Copy full SHA for 6fea4e5 - Browse repository at this point
Copy the full SHA 6fea4e5View commit details -
pyln: Allow users to override the LightningNode class
Quite a few of the things in the LightningNode class are tailored to their use in the c-lightning tests, so I decided to split those customizations out into a sub-class, and adding one more fixture that just serves the class. This allows us to override the LightningNode implementation in our own tests, while still having sane defaults for other users.
Configuration menu - View commit details
-
Copy full SHA for 169019e - Browse repository at this point
Copy the full SHA 169019eView commit details