Skip to content

Commit

Permalink
bump dependency versions, temp disable test_external_links
Browse files Browse the repository at this point in the history
  • Loading branch information
fastily committed Jun 1, 2023
1 parent 3fe68b5 commit bc310b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
requests==2.28.2
requests==2.31.0
2 changes: 2 additions & 0 deletions tests/test_mquery.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import datetime
from unittest import skip

from pwiki.mquery import MQuery
from pwiki.ns import NS
Expand Down Expand Up @@ -40,6 +41,7 @@ def test_duplicate_files(self):
expected = {"File:FastilyTest.svg": []}
self.assertDictEqual(expected, MQuery.duplicate_files(self.wiki, list(expected.keys()), False, True))

@skip("Regression on testwiki - 1.41.0-wmf.10") # TODO - revisit
def test_external_links(self):
m = MQuery.external_links(self.wiki, ["User:Fastily/Sandbox/ExternalLink", "User:Fastily/Sandbox", "User:Fastily/DoesNotExist789"])
self.assertCountEqual(["https://www.google.com", "https://www.facebook.com", "https://github.com"], m["User:Fastily/Sandbox/ExternalLink"])
Expand Down
3 changes: 2 additions & 1 deletion tests/test_wiki.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest import mock, TestCase
from unittest import mock, skip, TestCase

from pwiki.ns import NS

Expand Down Expand Up @@ -108,6 +108,7 @@ def test_duplicate_files(self):
def test_exists(self):
self.assertTrue(self.wiki.exists("Main Page"))

@skip("Regression on testwiki - 1.41.0-wmf.10") # TODO - revisit
def test_external_links(self):
self.assertCountEqual(["https://www.google.com", "https://www.facebook.com", "https://github.com"], self.wiki.external_links("User:Fastily/Sandbox/ExternalLink"))

Expand Down

0 comments on commit bc310b3

Please sign in to comment.