Skip to content

Commit

Permalink
#271 테스트 코드에서 level 파라미터 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
wisemuji committed May 8, 2024
1 parent f0faf1e commit 92773fe
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.droidknights.app.core.data.repository
import app.cash.turbine.test
import com.droidknights.app.core.data.api.fake.FakeGithubRawApi
import com.droidknights.app.core.data.datastore.fake.FakeSessionPreferencesDataSource
import com.droidknights.app.core.model.Level
import com.droidknights.app.core.model.Room
import com.droidknights.app.core.model.Session
import io.kotest.core.spec.style.StringSpec
Expand All @@ -23,7 +22,6 @@ internal class DefaultSessionRepositoryTest : StringSpec() {
title = "키노트",
content = "",
speakers = emptyList(),
level = Level.ETC,
tags = emptyList(),
room = Room.ETC,
startTime = LocalDateTime(2024, 6, 11, 10, 40),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.painter.ColorPainter
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import com.skydoves.landscapist.ImageOptions
import com.skydoves.landscapist.coil.CoilImage
Expand Down Expand Up @@ -42,6 +41,6 @@ fun NetworkImage(
private fun NetworkImagePreview() {
NetworkImage(
imageUrl = "",
placeholder = painterResource(id = Color(0xFFFFFFFF).toArgb()),
placeholder = ColorPainter(Color(0xFF000000)),
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.droidknights.app.core.designsystem.theme

import android.app.Activity
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.ColorScheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
Expand Down Expand Up @@ -73,10 +72,6 @@ private val LightColorScheme = lightColorScheme(

val LocalDarkTheme = compositionLocalOf { true }

val ColorScheme.surfaceDim
@Composable
get() = if (LocalDarkTheme.current) Black else PaleGray

@Composable
fun KnightsTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.droidknights.app.core.domain.usecase

import com.droidknights.app.core.model.Level
import com.droidknights.app.core.model.Room
import com.droidknights.app.core.model.Session
import com.droidknights.app.core.model.Speaker
Expand Down Expand Up @@ -55,7 +54,6 @@ internal class GetBookmarkedSessionsUseCaseTest : BehaviorSpec() {
title = "Item3 Title",
content = "Item3 Content",
speakers = listOf(Speaker(name = "철수", introduction = "", imageUrl = "")),
level = Level.BASIC,
tags = listOf(Tag(name = "Architecture")),
room = Room.TRACK1,
startTime = LocalDateTime(2023, 10, 5, 11, 0),
Expand All @@ -67,7 +65,6 @@ internal class GetBookmarkedSessionsUseCaseTest : BehaviorSpec() {
title = "Item1 Title",
content = "Item1 Content",
speakers = listOf(Speaker(name = "영희", introduction = "", imageUrl = "")),
level = Level.BASIC,
tags = listOf(Tag(name = "Architecture")),
room = Room.TRACK1,
startTime = LocalDateTime(2023, 10, 5, 9, 0),
Expand All @@ -79,7 +76,6 @@ internal class GetBookmarkedSessionsUseCaseTest : BehaviorSpec() {
title = "Item2 Title",
content = "Item2 Content",
speakers = listOf(Speaker(name = "민수", introduction = "", imageUrl = "")),
level = Level.BASIC,
tags = listOf(Tag(name = "Architecture")),
room = Room.TRACK1,
startTime = LocalDateTime(2023, 10, 5, 10, 0),
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import app.cash.turbine.test
import com.droidknights.app.core.domain.usecase.BookmarkSessionUseCase
import com.droidknights.app.core.domain.usecase.GetBookmarkedSessionIdsUseCase
import com.droidknights.app.core.domain.usecase.GetSessionUseCase
import com.droidknights.app.core.model.Level
import com.droidknights.app.core.model.Room
import com.droidknights.app.core.model.Session
import com.droidknights.app.core.testing.rule.MainDispatcherRule
Expand Down Expand Up @@ -35,7 +34,6 @@ class SessionDetailViewModelTest {
title = "title",
content = "content",
speakers = emptyList(),
level = Level.BASIC,
tags = emptyList(),
room = Room.TRACK1,
startTime = LocalDateTime(2023, 9, 12, 13, 0, 0),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.droidknights.app.feature.session
import app.cash.turbine.test
import com.droidknights.app.core.domain.usecase.GetBookmarkedSessionIdsUseCase
import com.droidknights.app.core.domain.usecase.GetSessionsUseCase
import com.droidknights.app.core.model.Level
import com.droidknights.app.core.model.Room
import com.droidknights.app.core.model.Session
import com.droidknights.app.core.testing.rule.MainDispatcherRule
Expand All @@ -30,7 +29,6 @@ internal class SessionViewModelTest {
title = "title",
content = "content",
speakers = emptyList(),
level = Level.BASIC,
tags = emptyList(),
room = Room.TRACK1,
startTime = LocalDateTime(2023, 9, 12, 13, 0, 0),
Expand Down

0 comments on commit 92773fe

Please sign in to comment.