Circleci project setup completed

- Add .circleci/config.yml
 - Errors resolved in atlas weather flavour
 - continue with Lint errors enabled
 - update to config.yml
This commit is contained in:
2022-02-06 20:48:13 +00:00
committed by GitHub
parent d2bffab2e1
commit ed78d40cc0
9 changed files with 360 additions and 19 deletions

View File

@@ -37,18 +37,16 @@ class WorldViewModelTest {
}
@Test
fun name() {
fun fetchDataForSingleLocation_invalidLocation_invalidReturn() {
val location = CURRENT_LOCATION
viewModel.fetchDataForSingleLocation(location)
assertEquals(viewModel.operationRefresh.getOrAwaitValue()?.getContentIfNotHandled(), true)
assertEquals(viewModel.operationRefresh.getOrAwaitValue()?.getContentIfNotHandled(), false)
}
}
/* Copyright 2019 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
fun <T> LiveData<T>.getOrAwaitValue(
time: Long = 2,
timeUnit: TimeUnit = TimeUnit.SECONDS