Skip to content

Commit

Permalink
🆒(#80): Exclusão de arquivo sobressalente de testes.
Browse files Browse the repository at this point in the history
Co-authored-by: Bianca Patrocínio <[email protected]>
  • Loading branch information
BrunoHDuarte2 and BiancaPatrocinio7 committed Nov 30, 2023
1 parent 25be9d9 commit 9c89883
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 88 deletions.
18 changes: 8 additions & 10 deletions Camada_Dados/WebScraper.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import os
import shutil
import time
import re
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from PyPDF2 import PdfReader
import os
import shutil
import time
import re




Expand All @@ -16,7 +17,6 @@ class Coletor_de_PDF:
def __init__(self):
self.driver = None
self.iniciar_driver()


def iniciar_driver(self):
self.driver = webdriver.Chrome()
Expand Down Expand Up @@ -102,13 +102,11 @@ def roda_ano(self, ano_inicial, ano_final=2023, unitario=False):
# Usado para os testes
ano_selecionado = self.year_selector.first_selected_option.text

if unitario == True:
if unitario is True:
print(ano_selecionado)
self.encerrar_driver()
return ano_selecionado

else:
self.roda_mes(contador_ano, contador_mes, self.month_selector)
self.roda_mes(contador_ano, contador_mes, self.month_selector)
# Fecha o Driver após todas as iterações
self.driver.quit()

Expand All @@ -126,7 +124,7 @@ def roda_mes(self, contador_ano, contador_mes, month_selector, unitario = False)

mes_selecionado = self.month_selector.first_selected_option.text
# Percorre os dias
if unitario == True:
if unitario is True:
print(mes_selecionado)
self.encerrar_driver()
return mes_selecionado
Expand Down
78 changes: 0 additions & 78 deletions test_WebScraper.py

This file was deleted.

0 comments on commit 9c89883

Please sign in to comment.