Skip to content
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

KML routes of trackables (#62) #70

Merged
merged 5 commits into from
Sep 7, 2016
Merged

KML routes of trackables (#62) #70

merged 5 commits into from
Sep 7, 2016

Conversation

FriedrichFroebel
Copy link
Collaborator

No description provided.

@coveralls
Copy link

coveralls commented Sep 6, 2016

Coverage Status

Coverage decreased (-0.2%) to 95.826% when pulling e6c95c0 on FriedrichFroebel:issue-62 into 4d07ffb on tomasbedrich:master.

@coveralls
Copy link

coveralls commented Sep 6, 2016

Coverage Status

Coverage decreased (-0.2%) to 95.811% when pulling 57aa152 on FriedrichFroebel:issue-62 into 4d07ffb on tomasbedrich:master.

@@ -124,3 +124,11 @@ def test_post_log(self, mock_request, mock_load_log_page):
"ctl00$ContentBody$LogBookPanel1$uxLogInfo": test_log_text,
}
mock_request.assert_called_with(self.t._log_page_url, method="POST", data=expected_post_data)

def test_load_KML(self):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename the test method according to the tested method. In this case test_get_KML().

@coveralls
Copy link

coveralls commented Sep 7, 2016

Coverage Status

Coverage increased (+0.03%) to 96.084% when pulling 8090038 on FriedrichFroebel:issue-62 into 4d07ffb on tomasbedrich:master.

@@ -179,6 +199,7 @@ def load(self):
self.owner = root.find(id="ctl00_ContentBody_BugDetails_BugOwner").text
self.goal = root.find(id="TrackableGoal").text
self.description = root.find(id="TrackableDetails").text
self.kmlurl = root.find(id="ctl00_ContentBody_lnkGoogleKML").get("href")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please make 2 more changes?

  1. rename the kmlurl to kml_url according to PEP8:

    Method Names and Instance Variables

    Use the function naming rules: lowercase with words separated by underscores as necessary to improve readability.

  2. Make the variable "non-public" (as defined in PEP8) – add one leading underscore – so the final name will be _kml_url. Then you can delete the new @property and @kmlurl.setter methods and handle the potentially missing URL in the get_KML() method the same way like in the _load_log_page() method.

    The goal of this change is to hide this variable from Trackable public API.

@tomasbedrich
Copy link
Owner

Thanks for your great work! Just a few more changes and we are ready to go.

@coveralls
Copy link

coveralls commented Sep 7, 2016

Coverage Status

Coverage decreased (-0.3%) to 95.712% when pulling 1f64e7e on FriedrichFroebel:issue-62 into 4d07ffb on tomasbedrich:master.

@tomasbedrich tomasbedrich merged commit 43ffdab into tomasbedrich:master Sep 7, 2016
@FriedrichFroebel FriedrichFroebel deleted the issue-62 branch September 7, 2016 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants