Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
giswqs
GitHub Repository: giswqs/geemap
Path: blob/master/tests/test_report.py
2313 views
1
#!/usr/bin/env python
2
"""Tests for `report` package."""
3
4
import unittest
5
6
import scooby
7
8
import geemap.report
9
10
11
class TestReport(unittest.TestCase):
12
13
def test_report(self):
14
"""Test that we can instantiate the report."""
15
report = geemap.report.Report()
16
self.assertIsInstance(report, scooby.Report)
17
report_str = str(report)
18
self.assertIn("geemap : 0.", report_str)
19
self.assertIn("ee : ", report_str)
20
self.assertIn("ipyleaflet : 0.", report_str)
21
self.assertIn("folium : ", report_str)
22
self.assertIn("jupyterlab : ", report_str)
23
self.assertIn("notebook : ", report_str)
24
self.assertIn("ipyevents : ", report_str)
25
26
27
if __name__ == "__main__":
28
unittest.main()
29
30