Fakultas Ilmu Komputer UI

Commit ace50c98 authored by PRIMO GIANCARLO UNEPUTTY's avatar PRIMO GIANCARLO UNEPUTTY
Browse files

Merge branch 'PBI-20-Jual_Beli_Investasi' into 'staging'

fix: Change admin page sidebar

See merge request ppl-fasilkom-ui/ppl-reguler-ganjil-2021-2021/walkiddie-toys/walkiddie-toys-backend!38
parents 1af68df1 83281312
......@@ -30,9 +30,6 @@
<li class="{% if active == 'req_pgdn' %}active{% endif %}">
<a href="{% url 'admin:req_pengadaan' %}">Verifikasi Request Pengadaan Mainan</a>
</li>
<li class="{% if active == 'proyek_pgdn' %}active{% endif %}">
<a href="{% url 'admin:proyek_pengadaan' %}">Verifikasi Proyek Pengadaan Mainan</a>
</li>
</ul>
</div>
</li>
......
......@@ -86,20 +86,6 @@ class AdminDetailProyekPengadaanPageUnitTest(AdminTestCase):
class AdminProyekPengadaanFunctionalTest(AdminFunctionalTestCase):
PROYEK_MENU_TEXT = "Verifikasi Proyek Pengadaan Mainan"
def test_verif_proyek_pengadaan_menu_redirects_correctly_when_clicked(self):
self._click_verif_menu_test_helper(self.PROYEK_MENU_TEXT)
self.assertEqual(self.browser.current_url, self.live_server_url+PROYEK_PENGADAAN_URL)
def test_verif_proyek_pengadaan_page_only_displays_fully_funded_pengadaan(self):
self.create_proyek_pengadaan_dummies()
self._click_verif_menu_test_helper(self.PROYEK_MENU_TEXT)
self.assertIn(self.DUMMY_RESTO_TRM, self.browser.page_source)
def test_verif_proyek_pengadaan_page_does_not_display_under_funded_pengadaan(self):
self.create_proyek_pengadaan_dummies()
self._click_verif_menu_test_helper(self.PROYEK_MENU_TEXT)
self.assertNotIn(self.DUMMY_RESTO_TLK, self.browser.page_source)
def test_verif_proyek_pengadaan_filter_displays_correct_content(self):
self.create_proyek_pengadaan_filter_dummies()
self._click_filter_test_helper(PROYEK_PENGADAAN_URL)
......
# Generated by Django 3.1.7 on 2021-12-08 07:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('toko', '0024_toko_nomor_toko'),
]
operations = [
migrations.AlterField(
model_name='toko',
name='nomor_toko',
field=models.IntegerField(default=1),
),
]
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