Skip to content

Commit

Permalink
Try just running test_grdimage_over_dateline first before other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Jul 15, 2020
1 parent 46c8471 commit 3499047
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ test:
@echo ""
@cd $(TESTDIR); python -c "import $(PROJECT); $(PROJECT).show_versions()"
@echo ""
cd $(TESTDIR); pytest $(PYTEST_ARGS) $(PROJECT)
cd $(TESTDIR); pytest -m runfirst --no-summary $(PYTEST_ARGS) $(PROJECT)
cd $(TESTDIR); pytest -m 'not runfirst' $(PYTEST_ARGS) $(PROJECT)
cp $(TESTDIR)/coverage.xml .
cp -r $(TESTDIR)/htmlcov .
rm -r $(TESTDIR)
Expand Down
1 change: 1 addition & 0 deletions pygmt/tests/test_grdimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def test_grdimage_fails():
fig.grdimage(np.arange(20).reshape((4, 5)))


@pytest.mark.runfirst
@pytest.mark.mpl_image_compare
def test_grdimage_over_dateline(xrgrid):
"""
Expand Down

0 comments on commit 3499047

Please sign in to comment.