FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-63882: Adds tests for xml.dom.minidom by karlcow · Pull Request #24152 · python/cpython · GitHub

Repository navigation

Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
afefc8a
bpo-19683: Changes the docstring for the test file
karlcow Jan 7, 2021
24fd486
bpo-19683: Adds tests for toxml method
karlcow Jan 7, 2021
172eacd
bpo-19683: Changes the _repr_ for Node Element
karlcow Jan 7, 2021
0d60669
bpo-19683: Reorganize import for clarity
karlcow Jan 7, 2021
c106ce5
bpo-19683: Adds encoding test for toxml
karlcow Jan 7, 2021
847c6f2
bpo-19683: Reformats hasChildNodes test
karlcow Jan 7, 2021
c488947
bpo-19683: Adds test for childNodes
karlcow Jan 7, 2021
dc3f100
bpo-19683: Adds firstChild and lastChild tests
karlcow Jan 7, 2021
14ad87c
bpo-19683: Adds test for insertBefore DocumentFragment
karlcow Jan 11, 2021
a009350
bpo-19683: Adds test for insertBefore for invalid NodeType
karlcow Jan 15, 2021
709a640
bpo-19683: Adds test for insertBefore for text node
karlcow Jan 15, 2021
b6fe778
bpo-19683: Adds test for insertBefore without ref node
karlcow Jan 15, 2021
95aafaf
bpo-19683: Adds tests for insertBefore
karlcow Jan 19, 2021
896543e
bpo-19683: Adds tests for appendChild
karlcow Jan 19, 2021
4dc05ca
bpo-19683: Removes tests which are empty
karlcow Jan 19, 2021
ff99b90
bpo-19683: Adds tests firstChild, lastChild
karlcow Jan 19, 2021
e5654e8
bpo-19683: Adds tests for replaceChild to xml.dom.test_minidom
karlcow Jan 19, 2021
0da118b
bpo-19683: Adds tests for removeChild
karlcow Jan 19, 2021
d0d51f2
bpo-19683: Adds tests for normalize. Part 1
karlcow Feb 19, 2021
52c26c5
bpo-19683: Adds tests for normalize. Part 2
karlcow Feb 19, 2021
c8ef460
bpo-19683: Adds cloneNode tests. Part 1
karlcow Feb 19, 2021
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
bpo-19683: Removes tests which are empty
These tests are useless for now. We will be adding them again later with proper code.
  • Loading branch information
karlcow committed Jan 19, 2021
commit 4dc05cab6de0fed4512286debd6d37b5eedac5db
61 changes: 0 additions & 61 deletions Lib/test/test_minidom.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,6 @@ def testChangeAttr(self):
and el.getAttribute("spam2") == "bam2")
dom.unlink()

def testGetAttrList(self):
pass

def testGetAttrValues(self):
pass

def testGetAttrLength(self):
pass

def testGetAttribute(self):
dom = Document()
child = dom.appendChild(
Expand All @@ -337,8 +328,6 @@ def testGetAttributeNS(self):
self.assertEqual(child2.getAttributeNS("http://www.python.org", "missing"),
'')

def testGetAttributeNode(self): pass

def testGetElementsByTagNameNS(self):
d="""<foo xmlns:minidom='http://pyxml.sf.net/minidom'>
<minidom:myelem/>
Expand Down Expand Up @@ -409,8 +398,6 @@ def testAttributeRepr(self):
self.confirm(str(node) == repr(node))
dom.unlink()

def testTextNodeRepr(self): pass

def testWriteXML(self):
str = '<?xml version="1.0" ?><a b="c"/>'
dom = parseString(str)
Expand Down Expand Up @@ -474,14 +461,6 @@ def testProcessingInstruction(self):
and pi.localName is None
and pi.namespaceURI == xml.dom.EMPTY_NAMESPACE)

def testProcessingInstructionRepr(self): pass

def testTextRepr(self): pass

def testWriteText(self): pass

def testDocumentElement(self): pass

def testTooManyDocumentElements(self):
doc = parseString("<doc/>")
elem = doc.createElement("extra")
Expand All @@ -490,26 +469,6 @@ def testTooManyDocumentElements(self):
elem.unlink()
doc.unlink()

def testCreateElementNS(self): pass

def testCreateAttributeNS(self): pass

def testParse(self): pass

def testParseString(self): pass

def testComment(self): pass

def testAttrListItem(self): pass

def testAttrListItems(self): pass

def testAttrListItemNS(self): pass

def testAttrListKeys(self): pass

def testAttrListKeysNS(self): pass

def testRemoveNamedItem(self):
doc = parseString("<doc a=''/>")
e = doc.documentElement
Expand All @@ -529,26 +488,6 @@ def testRemoveNamedItemNS(self):
self.assertRaises(xml.dom.NotFoundErr, attrs.removeNamedItemNS,
"http://xml.python.org/", "b")

def testAttrListValues(self): pass

def testAttrListLength(self): pass

def testAttrList__getitem__(self): pass

def testAttrList__setitem__(self): pass

def testSetAttrValueandNodeValue(self): pass

def testParseElement(self): pass

def testParseAttributes(self): pass

def testParseElementNamespaces(self): pass

def testParseAttributeNamespaces(self): pass

def testParseProcessingInstructions(self): pass

def _testCloneElementCopiesAttributes(self, e1, e2, test):
attrs1 = e1.attributes
attrs2 = e2.attributes
Expand Down

Back | FazBrowse Home | New Git URL