Skip to content

Add docstrings and tests to gmtinfo #144

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

Merged
merged 8 commits into from
Mar 14, 2018
Merged

Add docstrings and tests to gmtinfo #144

merged 8 commits into from
Mar 14, 2018

Conversation

seisman
Copy link
Member

@seisman seisman commented Mar 13, 2018

Fixes #140.

def test_info():
"Make sure info works"
output = info(fname=data_fname)
assert output == '{}: N = 20 <11.5309/61.7074> <-2.9289/7.8648> <0.1412/0.9338>\n'.format(data_fname)

Choose a reason for hiding this comment

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

E501 line too long (105 > 79 characters)

def test_info():
"Make sure info works"
output = info(fname=data_fname)
assert output == '''{}: N = 20 <11.5309/61.7074> <-2.9289/7.8648> <0.1412/0.9338>\n'''.format(data_fname)

Choose a reason for hiding this comment

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

E501 line too long (109 > 79 characters)

"Make sure info works"
output = info(fname=POINTS_DATA)
assert output == '{}: N = 20 <11.5309/61.7074> <-2.9289/7.8648> '
'<0.1412/0.9338>\n'.format(POINTS_DATA)

Choose a reason for hiding this comment

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

E999 IndentationError: unexpected indent
E113 unexpected indentation

def test_info():
"Make sure info works"
output = info(fname=POINTS_DATA)
assert output == '{}: N = 20 <11.5309/61.7074> <-2.9289/7.8648> <0.1412/0.9338>\n'.format(POINTS_DATA)

Choose a reason for hiding this comment

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

E501 line too long (106 > 79 characters)

Copy link
Member Author

Choose a reason for hiding this comment

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

@leouieda Any suggestions to fix this lint issue? I've tried but failed.

@leouieda
Copy link
Member

Thanks @seisman!

@leouieda leouieda merged commit 86a2263 into master Mar 14, 2018
@leouieda leouieda deleted the gmtinfo-update branch March 14, 2018 03:29
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.

3 participants