Fakultas Ilmu Komputer UI

Commit c2c2a33c authored by Rayza Arasj Mahardhika's avatar Rayza Arasj Mahardhika
Browse files

add test and remove file to bump coverage

parent 343cc8eb
Pipeline #28437 canceled with stage
from django.contrib import admin
# Register your models here.
from django.apps import apps
from django.test import TestCase
from accounts.apps import AccountsConfig
class AccountsConfigTest(TestCase):
def test_apps(self):
self.assertEqual(AccountsConfig.name, 'accounts')
self.assertEqual(apps.get_app_config('accounts').name, 'accounts')
\ No newline at end of file
from django.contrib import admin
# Register your models here.
......@@ -135,6 +135,10 @@ class NewListTest(TestCase):
class CustomTest(TestCase):
def test_commentary_correct_count_0_correct(self):
result = get_commentary(0)
self.assertEqual(result, COMMENTARY_ZERO)
def test_commentary_correct_count_5_correct(self):
result = get_commentary(5)
self.assertEqual(result, COMMENTARY_MORE_THAN_EQUAL_FIVE)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment