Skip to content

Commit

Permalink
Merge pull request #83 from Tinkoff/fix_unit_tests
Browse files Browse the repository at this point in the history
fix lint & tests
  • Loading branch information
Nov1kov authored Feb 21, 2022
2 parents 74f759d + f9cdb1d commit 764f57a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package ru.tinkoff.acquiring.sdk.utils
*/
object TestPaymentData {

const val TEST_PASS = "12345678"
const val TEST_TERMINAL_KEY = "TestSDK"
const val TEST_CUSTOMER_KEY = "user-key-test"
const val TEST_PAY_FORM = "Checkout"
Expand Down
6 changes: 4 additions & 2 deletions core/src/test/java/ApiSdkUnitTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ import kotlin.math.abs

class ApiSdkUnitTest {

private val sdk: AcquiringSdk = AcquiringSdk(TestPaymentData.TEST_TERMINAL_KEY,
TestPaymentData.TEST_PASS, TestPaymentData.TEST_PUBLIC_KEY)
private val sdk: AcquiringSdk = AcquiringSdk(
TestPaymentData.TEST_TERMINAL_KEY,
TestPaymentData.TEST_PUBLIC_KEY
)
private var randomOrderId = "0"

init {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package ru.tinkoff.acquiring.sdk.ui.activities

import android.annotation.SuppressLint
import android.app.Activity
import android.app.PendingIntent
import android.content.Context
Expand Down Expand Up @@ -129,6 +130,7 @@ internal class NotificationPaymentActivity : AppCompatActivity() {
}
}

@SuppressLint("MissingPermission")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

Expand Down

0 comments on commit 764f57a

Please sign in to comment.