From: Brigitta Sipocz <bsipocz@gmail.com>
Date: Fri, 6 Jan 2017 14:05:03 +0000
Subject: pull/281: Use mock machinery for remote-data='none'

Remote data got values in astropy 1.3, thus we need to check for that
and use the mock machinery if remote-data='none'

This solves most of the issues we see with astropy stable here #278 #263

URL: https://github.com/astropy/astroplan/pull/281
---
 astroplan/conftest.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/astroplan/conftest.py b/astroplan/conftest.py
index e7ab3d9..0b1c2dd 100644
--- a/astroplan/conftest.py
+++ b/astroplan/conftest.py
@@ -72,5 +72,6 @@ def pytest_configure(config):
         # config.option.mpl_baseline_path = 'astroplan/plots/tests/baseline_images'
 
     # Activate remote data mocking if the `--remote-data` option isn't used:
-    if not config.getoption('remote_data'):
+    if (not config.getoption('remote_data')
+            or config.getvalue('remote_data') == 'none'):
         _mock_remote_data()
