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
mutable arguments removed #167
Conversation
Codecov Report
@@ Coverage Diff @@
## master #167 +/- ##
==========================================
+ Coverage 76.52% 79.05% +2.53%
==========================================
Files 10 10
Lines 707 721 +14
Branches 141 148 +7
==========================================
+ Hits 541 570 +29
+ Misses 140 120 -20
- Partials 26 31 +5
Continue to review full report at Codecov.
|
Looks good, thanks for doing this! It looks like there are no tests that use the lens_names property. Would you mind adding one so we can be sure it is working correctly? Thank you! |
I get the feeling I am going to sound stupid, but how do you add a test? |
not at all! learning about tests is always a hard hurdle. In the source directory, you can install the test requirements into your environment with the command
Then, you can run the test suite with the command
You should see a summary of all the test runs showing that they've passed. Then you can add a new test to the file We use pytest for all our tests, you can read more about it on their docs site and look at some of the other tests to see how we structure them. Let me know if you need anything else! |
Thanks I'll give it a go |
When I am trying to run pytest test, I'm being told I need to: |
Did running
result in errors? That command should install those 3 packages. If that did not create errors, you might have a problem with your environments being crossed. Are you using virtual environments? Compare the output of |
I got this error: |
Ahh, if you are on Windows you should follow the instructions here: https://igraph.org/python/ Sometimes setting igraph up can be a pain point. If you still can't get it working, you can specify just running the test file you're extending with the command
|
Thanks for the help Nathaniel, I'll have a go at this tonight. |
I think I have done it. Let me know if I need to do anything more. |
It looks like you've added a test, but it still has the body of the test you copied above. Maybe you need to make one more commit with the changes to the test? |
Sorry I'll change this tonight. |
The test is failing, but I think its down to how I've built it as I am getting this error: |
igraph is a dependency for some of the visualization tools we use, but you shouldn't have to use it other than having it installed. It's hard to diagnose the issue without the code. Feel free to push what you have no and I can make edits if need be. Thanks! |
I'll have one last go at it tonight and if I can't work it out I'll push for you to review, thanks Nathaniel |
Hi Nathaniel, When I try to run test_mapper I get this error: I will push my test through to you. It would be a great help if you could explain what I have done wrong so I can learn from it. |
I have removed the mutable arguments, I haven't touched the Color_scale argument.