-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix #100 and add unittest for layergroup methods #101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your contribution to this package. And also many thanks for writing the test_layergroup.py
file.
geo/Geoserver.py
Outdated
) -> str: | ||
try: | ||
if self.get_layergroup(layer_name=layergroup_name) is None: | ||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this block of try
, and except
blocks? I didn't see any required information inside the try
block. I think it should remove this block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea was to raise the exact error message we had here before. I have removed it now, so you now get whatever error message ist returned by get_layergroup.
tests/.env_template
Outdated
@@ -0,0 +1,4 @@ | |||
# Login information for geoserver | |||
GEOSERVER_URL="http://localhost:8050/geoserver" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the default value of geoserver port to 8080
Thanks for the friendly feedback :) |
Hi @iamtekson
I've fixed #100 and added some unittests during development to be sure it all works as expected (sorry for using unittest instead of pytest, it's a bit more intuitive to me - I can also remove the test if it doesn't suit your concept).