9
9
10
10
from danswer .connectors .mediawiki import wiki
11
11
12
+ # These tests are disabled for now
13
+
12
14
13
15
@pytest .fixture
14
16
def site () -> pywikibot .Site :
15
17
return pywikibot .Site ("en" , "wikipedia" )
16
18
17
19
20
+ @pytest .mark .skip (reason = "Test disabled" )
18
21
def test_pywikibot_timestamp_to_utc_datetime () -> None :
19
22
timestamp_without_tzinfo = pywikibot .Timestamp (2023 , 12 , 27 , 15 , 38 , 49 )
20
23
timestamp_min_timezone = timestamp_without_tzinfo .astimezone (datetime .timezone .min )
@@ -80,6 +83,7 @@ def latest_revision(self) -> pywikibot.page.Revision:
80
83
)
81
84
82
85
86
+ @pytest .mark .skip (reason = "Test disabled" )
83
87
def test_get_doc_from_page (site : pywikibot .Site ) -> None :
84
88
test_page = MockPage (site , "Test Page" , _has_categories = True )
85
89
doc = wiki .get_doc_from_page (test_page , site , wiki .DocumentSource .MEDIAWIKI )
@@ -103,6 +107,7 @@ def test_get_doc_from_page(site: pywikibot.Site) -> None:
103
107
assert doc .id == f"MEDIAWIKI_{ test_page .pageid } _{ test_page .full_url ()} "
104
108
105
109
110
+ @pytest .mark .skip (reason = "Test disabled" )
106
111
def test_mediawiki_connector_recurse_depth () -> None :
107
112
"""Test that the recurse_depth parameter is parsed correctly.
108
113
@@ -132,6 +137,7 @@ def test_mediawiki_connector_recurse_depth() -> None:
132
137
assert connector .recurse_depth == recurse_depth
133
138
134
139
140
+ @pytest .mark .skip (reason = "Test disabled" )
135
141
def test_load_from_state_calls_poll_source_with_nones (mocker : MockFixture ) -> None :
136
142
connector = wiki .MediaWikiConnector ("wikipedia.org" , [], [], 0 , "test" )
137
143
poll_source = mocker .patch .object (connector , "poll_source" )
0 commit comments