Skip to content

Add docstrings and tests to gmtinfo - #144

Merged
leouieda merged 8 commits into
masterfrom
gmtinfo-update
Mar 14, 2018
Merged

leouieda merged 8 commits into
masterfrom
gmtinfo-update

Conversation

@seisman

@seisman seisman commented Mar 13, 2018

Copy link
Copy Markdown
Member

Fixes #140.

Comment thread gmt/tests/test_info.py Outdated
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)

Copy link
Copy Markdown

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)

Comment thread gmt/tests/test_info.py Outdated
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)

Copy link
Copy Markdown

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)

Comment thread gmt/tests/test_info.py Outdated
"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)

Copy link
Copy Markdown

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

Comment thread gmt/tests/test_info.py Outdated
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)

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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