-
-
Notifications
You must be signed in to change notification settings - Fork 423
Cosmosim latest unittests #600
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
Conversation
astroquery/cosmosim/core.py
Outdated
@@ -379,8 +387,8 @@ def check_all_jobs(self, phase=None, regex=None, sortby=None): | |||
if not phase and not regex: | |||
if not sortby: | |||
t = Table() | |||
t['JobID'] = self.job_dict.keys() | |||
t['Phase'] = self.job_dict.values() | |||
t['JobID'] = [i for i in self.job_dict.keys()] |
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.
could use list(self.job_dict.keys())
for the same effect
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.
Yes - I definitely tried casting to a list straight away. However, oddly enough, it gave me issues. I had to actually do a list comprehension to fix this. Nonetheless, I'm going to see if it works.
@agroener your testing issues are arising because you |
Ok. I've written some tests for the login/logout procedure for cosmosim. I've pushed up my changes because at this point in time, keyring is now doing something unexpected (since the last time I used it). It now is asking me for:
To remind ourselves, cosmosim uses the |
|
Okay, that makes a bit more sense now. I did most of my developing on OS X previously. Now, I'm on linux, which is why the expected keyring behavior is differing. I'll go back to OS X for now, but I need to normalize the behavior after I get all of this working. I don't want this module to be platform dependent in any way. |
Well, I had intended to complete both a few weeks ago, but once I began working, I realized there were some minor discrepancies with keyring between OS X and Linux which was causing some unexpected login behavior. I've since fixed the issue, and things seem to be normalized a bit. The tests which I spent time on this last round of coding were regarding login/logout, of which there are a number of possible combinations when storing/deleting credentials are considered. I'll see if I can get around to finishing off login/logout and query tests in the next couple of weeks, pending my work schedule. |
ab0c591
to
712c326
Compare
This has lingered for a little more than a week. I'm closing it. Please reopen if you complete it. |
Picking up where I left off regarding the creation of tests for the CosmoSim module. This PR is ideally going to replace a previous one (#458) once it is completely up and running, ideally. This is also related to a current issue (#599).