Comments (1)
I'd suggest this approach: Write two tests, one which is marked with @remote_data
, and the other with @pytest.mark.skipif('...')
. Most of the "guts" of the test can be in a private function called by each of those tests, and you can just use the two versions to do the mocking or not.
The one catch here is the ...
in skipif
. I'm not exactly sure how to ask pytest "is remote_data on or not". If you look deep into the astropy testing machinery, there's a line that does if not config.getoption('remote_data')
... but the part I'm not sure about is how to get a config
object actually in a testing module (the usage in the testing machinery is inside a plugin). There must be some way to do so, but I don't have time right now to delve through the pytest docs to find out...
from astroplan.
Related Issues (20)
- Observer.parallactic_angle uses LMST instead of LAST HOT 3
- `plot_schedule_airmass` with `show_night=True` is immensely slow
- plot_sky, multiple calls but only one target is shown
- Error in set time calculation HOT 1
- TIME CRITICAL OBSERVATIONS
- Remove deprecated astropy helper functions. HOT 1
- Revisit test matrix: remove python 3.7 HOT 3
- Notice: You might be using enable_deprecations_as_exceptions that is removed in astropy v6 HOT 1
- Deprecation Warnings in observer.moon_rise_time() HOT 1
- plot_sky crashes with matplotlib>v3.4.0 and astroplan v0.8 HOT 5
- TLE Target
- "Tried to do is_equivalent_frame on something that isn't frame-like" error from MoonSeparationConstraint().compute_constraint() HOT 2
- Amount of time HOT 1
- Set labels to data using plot_altitude
- MoonSeparationConstraint issue
- Potential Sunrise/Sunset Discrepancy HOT 6
- Missing targets in plot_airmass and wrong values HOT 5
- Initialize altitude constraint from profile HOT 2
- Observer sun_set_time and sun_rise_time methods crashing
- Astropy 6.0 support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astroplan.