Fakultas Ilmu Komputer UI

Commit 8e698dc4 authored by Alfian Fuadi Rafli's avatar Alfian Fuadi Rafli
Browse files

Delete functional test from unit test pipeline

parent 658d59d5
......@@ -30,12 +30,6 @@ UnitTest:
coverage: '/TOTAL\s+\d+\s+\d+\s+(\d+)%/'
before_script:
- export DATABASE_URL=postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/$POSTGRES_DB
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
- apt-get update -yy
- apt-get update -qq && apt-get install -y -qq unzip
- apt-get install -y google-chrome-stable
- apt-get install -y xvfb
- pip install -r requirements.txt
- python manage.py makemigrations
- python manage.py migrate
......
......@@ -1420,36 +1420,6 @@ class RevisiMateriTest(TestCase):
self.client.logout()
class NameBannerFunctionalTest(LiveServerTestCase):
selenium = None
@classmethod
def setUpClass(cls):
super().setUpClass()
options = Options()
options.add_argument("--headless")
options.add_argument("start-maximized")
options.add_argument("disable-infobars")
options.add_argument("--disable-extensions")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--no-sandbox")
options.add_argument("--no-sandbox")
cls.selenium = webdriver.Chrome(ChromeDriverManager().install(), chrome_options=options)
cls.selenium.implicitly_wait(10)
@classmethod
def tearDownClass(cls):
cls.selenium.quit()
super().tearDownClass()
def test_list_todo_available(self):
self.selenium.get(f"{self.live_server_url}")
try:
self.assertIn("Digipus", self.selenium.find_element_by_css_selector("nav.katalog-navbar").text)
except NoSuchElementException:
self.fail("No such element: Katalog Brand")
class GenerateDummyCommandTest(TestCase):
def setUp(self):
self.material_numbers = [5, 10, 25, 100]
......
This diff is collapsed.
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