Coverage for marvin.management : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" marvin.management ~~~~~~~~~~~~~~~~~
Configures the manager, and acts as an entry point for the manage command.
""" # pylint: disable=invalid-name
def runserver(): # pragma: no cover """ Start a devserver on port 5000 """ config_file = path.abspath(path.join(path.dirname(__file__), '..', 'dev_config.py')) dev_app = create_app(config_file=config_file) init_db() dev_app.run()
""" Delete all streams and entries.
After deletion it will reset movie stream counts to 0. Can optionally also delete all movies, if the --wipe_movies flag is used. """
else: # Just reset the stream counts
def reset_movie_stream_counts(): """ Recount the movie number_of_streams where it's > 0. """
def init_db(): """ Create the database. Will not migrate if one already exists. """
def main(): # pragma: no cover """ Runs the manager.
Target for setup.py entry point. """ manager.run()
if __name__ == '__main__': # pragma: no cover main() |