Beispiel #1
0
 def test_default_content_from_url(self):
     app = Application()
     app.get_data_from_url('https://json.medrating.org/todos',
                           'https://json.medrating.org/users')
     app.generate_reports(no_file=True)
Beispiel #2
0
import sys
from application import Application

if __name__ == "__main__":

    app = Application()
    app.get_data_from_url('https://json.medrating.org/todos',
                          'https://json.medrating.org/users')

    if (app.tasks == {}) or (app.users == {}):
        print("Data collecting failed. Program aborted.")
        sys.exit()

    app.generate_reports('./tasks/')