Editing
Development/Testing
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Test naming == Pattern: <code>test_{what}_{scenario}</code> <syntaxhighlight lang="python"> # What is being tested + specific scenario def test_resolve_legal_reference_article_of_code(): def test_resolve_legal_reference_empty_string(): def test_resolve_legal_reference_unknown_pattern(): def test_resolve_legal_reference_pourvoi_number(): def test_parse_legislation_article_basic_fields(): def test_parse_legislation_article_missing_content(): def test_parse_legislation_article_multiple_versions(): def test_sanitize_html_content_strips_script_tags(): def test_sanitize_html_content_preserves_table_structure(): def test_sanitize_html_content_empty_input(): </syntaxhighlight> The test name alone must tell an auditor what is being verified, without reading the body.
Summary:
Please note that all contributions to Dura Lex Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Dura Lex Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information