File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """Copyright 2022 Google LLC
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License.
14+ """
15+ import unittest
16+
17+ import fetch_appdata_folder
18+
19+
20+ class TestFetchAppdataFolder (unittest .TestCase ):
21+ """Unit test class for Appdata snippet"""
22+
23+ @classmethod
24+ def test_list_appdata (cls ):
25+ """Test list_appdata"""
26+ file_id = fetch_appdata_folder .fetch_appdata_folder ()
27+ cls .assertIsNotNone (cls , file_id )
28+
29+
30+ if __name__ == '__main__' :
31+ unittest .main ()
Original file line number Diff line number Diff line change 1+ """Copyright 2022 Google LLC
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License.
14+ """
15+ import unittest
16+
17+ import list_appdata
18+
19+
20+ class TestListAppdata (unittest .TestCase ):
21+ """Unit test class for Appdata snippet"""
22+
23+ @classmethod
24+ def test_list_appdata (cls ):
25+ """Test list_appdata"""
26+ files = list_appdata .list_appdata ()
27+ cls .assertNotEqual (cls , 0 , len (files ))
28+
29+
30+ if __name__ == '__main__' :
31+ unittest .main ()
Original file line number Diff line number Diff line change 1+ """Copyright 2022 Google LLC
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License.
14+ """
15+ import unittest
16+
17+ import upload_app_data
18+
19+
20+ class TestUploadAppdata (unittest .TestCase ):
21+ """
22+ Unit test class for Appdata snippet
23+ """
24+
25+ @classmethod
26+ def test_upload_adddata (cls ):
27+ """Test upload_appdata
28+ create a text file titled "abc.txt" in order to pass this test
29+ """
30+ file_id = upload_app_data .upload_appdata ()
31+ cls .assertIsNotNone (cls , file_id )
32+
33+
34+ if __name__ == '__main__' :
35+ unittest .main ()
Original file line number Diff line number Diff line change 1+ """Copyright 2022 Google LLC
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License.
14+ """
15+
16+ import unittest
17+
18+ import fetch_changes
19+ import fetch_start_page_token
20+
21+
22+ class TestFetchChanges (unittest .TestCase ):
23+ """Unit test classs for Change snippet"""
24+
25+ @classmethod
26+ def test_fetch_changes (cls ):
27+ """Test fetch_changes"""
28+ start_token = fetch_start_page_token .fetch_start_page_token ()
29+ token = fetch_changes .fetch_changes (start_token )
30+ cls .assertIsNotNone (cls , token )
31+
32+
33+ if __name__ == '__main__' :
34+ unittest .main ()
Original file line number Diff line number Diff line change 1+ """Copyright 2022 Google LLC
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
6+
7+ http://www.apache.org/licenses/LICENSE-2.0
8+
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License.
14+ """
15+ import unittest
16+
17+ import fetch_start_page_token
18+
19+
20+ class TestFetchChanges (unittest .TestCase ):
21+ """Unit test classs for Change snippet"""
22+
23+ @classmethod
24+ def test_fetch_start_page_token (cls ):
25+ """Test fetch_start_page_token"""
26+ token = fetch_start_page_token .fetch_start_page_token ()
27+ cls .assertIsNotNone (cls , token )
28+
29+
30+ if __name__ == '__main__' :
31+ unittest .main ()
You can’t perform that action at this time.
0 commit comments