diff --git a/src/io/get_last_ref_date.py b/src/io/get_last_ref_date.py
index 75d06b5..1890a77 100644
--- a/src/io/get_last_ref_date.py
+++ b/src/io/get_last_ref_date.py
@@ -23,7 +23,7 @@ def main():
table = soup.find('table')
rows = table.find_all('tr')
list_last_modified_at = []
-
+ breakpoint()
print('creating dict files url')
for row in rows:
if row.find_all('td'):
diff --git a/tests/io/htmls/test_get_last_ref_date.html b/tests/io/htmls/test_get_last_ref_date.html
new file mode 100644
index 0000000..375a5e5
--- /dev/null
+++ b/tests/io/htmls/test_get_last_ref_date.html
@@ -0,0 +1,21 @@
+
+
+
+
+Index of /CNPJ/dados_abertos_cnpj
+
+
+Index of /CNPJ/dados_abertos_cnpj
+
+
diff --git a/tests/io/htmls/test_get_last_ref_date_all_equal.html b/tests/io/htmls/test_get_last_ref_date_all_equal.html
deleted file mode 100644
index 8f485a6..0000000
--- a/tests/io/htmls/test_get_last_ref_date_all_equal.html
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
- Index of /CNPJ
-
-
-Index of /CNPJ
-
-
diff --git a/tests/io/htmls/test_get_last_ref_date_diffs.html b/tests/io/htmls/test_get_last_ref_date_diffs.html
deleted file mode 100644
index 053c85c..0000000
--- a/tests/io/htmls/test_get_last_ref_date_diffs.html
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
- Index of /CNPJ
-
-
-Index of /CNPJ
-
-
diff --git a/tests/io/test_get_last_ref_date.py b/tests/io/test_get_last_ref_date.py
index 707e1aa..1db5b96 100644
--- a/tests/io/test_get_last_ref_date.py
+++ b/tests/io/test_get_last_ref_date.py
@@ -16,27 +16,14 @@ def text(self):
return self.txt
-def test_get_last_ref_date_all_one_date(mocker):
+def test_get_last_ref_date(mocker):
mock_requests = Mock()
mocker.patch('src.io.get_last_ref_date.requests', mock_requests)
- html_file = 'test_get_last_ref_date_all_equal.html'
+ html_file = 'test_get_last_ref_date.html'
html_path = os.path.join(DIR_NAME, 'htmls', html_file)
mock_requests.get.return_value = ObjectFakeText(open(html_path))
ref_date = get_last_ref_date()
- ref_date_expected = '2022-08-15'
-
- assert ref_date == ref_date_expected
-
-
-def test_get_last_ref_date_diff_dates(mocker):
- mock_requests = Mock()
- mocker.patch('src.io.get_last_ref_date.requests', mock_requests)
- html_file = 'test_get_last_ref_date_diffs.html'
- html_path = os.path.join(DIR_NAME, 'htmls', html_file)
- mock_requests.get.return_value = ObjectFakeText(open(html_path))
-
- ref_date = get_last_ref_date()
- ref_date_expected = '2020-01-01'
+ ref_date_expected = '2024-10'
assert ref_date == ref_date_expected