| 1 |
# Copyright (c) DataLab Platform Developers, BSD 3-Clause license, see LICENSE file. |
| 2 |
|
| 3 |
""" |
| 4 |
Module for taking DataLab screenshots |
| 5 |
""" |
| 6 |
|
| 7 |
from datalab import config |
| 8 |
from datalab.tests.features.applauncher import launcher1_app_test |
| 9 |
from datalab.tests.features.utilities import settings_unit_test |
| 10 |
from datalab.tests.scenarios import beautiful_app |
| 11 |
|
| 12 |
if __name__ == "__main__": |
| 13 |
print("Updating screenshots...", end=" ") |
| 14 |
config.reset() # Reset configuration (remove configuration file and initialize it) |
| 15 |
launcher1_app_test.test_launcher1(screenshots=True) |
| 16 |
config.reset() |
| 17 |
beautiful_app.run_beautiful_scenario(screenshots=True) |
| 18 |
beautiful_app.run_blob_detection_on_flower_image(screenshots=True) |
| 19 |
settings_unit_test.capture_settings_screenshots() |
| 20 |
print("done.") |