Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
184
Issues
184
List
Boards
Labels
Milestones
Merge Requests
50
Merge Requests
50
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
The new woob repository is here:
https://gitlab.com/woob/woob
. This gitlab will be removed soon.
Open sidebar
weboob
weboob
Commits
64915d3d
Commit
64915d3d
authored
Apr 04, 2021
by
Roger Philibert
Committed by
Vincent A
Apr 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more innocuous string renames
parent
90a64e6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
weboob/applications/smtp/smtp.py
weboob/applications/smtp/smtp.py
+2
-2
weboob/browser/tests/url.py
weboob/browser/tests/url.py
+7
-7
No files found.
weboob/applications/smtp/smtp.py
View file @
64915d3d
...
...
@@ -97,8 +97,8 @@ class AppSmtp(ReplApplication):
'and send an email for each message, and post a reply to a message on a website.'
SHORT_DESCRIPTION
=
"daemon to send and check messages"
CONFIG
=
{
'interval'
:
300
,
'domain'
:
'w
eb
oob.example.org'
,
'recipient'
:
'w
eb
oob@example.org'
,
'domain'
:
'woob.example.org'
,
'recipient'
:
'woob@example.org'
,
'smtp'
:
'localhost'
,
'pipe'
:
''
,
'html'
:
0
}
...
...
weboob/browser/tests/url.py
View file @
64915d3d
...
...
@@ -38,7 +38,7 @@ class MyMockBrowser(PagesBrowser):
# URL used by method match
urlNotRegex
=
URL
(
"http://test.org/"
,
"http://test2.org/"
)
urlRegex
=
URL
(
"http://test.org/"
,
"http://w
eb
oob2.org/"
)
urlRegex
=
URL
(
"http://test.org/"
,
"http://woob2.org/"
)
urlRegWithoutHttp
=
URL
(
"news"
)
urlNotRegWithoutHttp
=
URL
(
"youtube"
)
...
...
@@ -85,7 +85,7 @@ def test_match_url_pasregex_baseurl(self):
# Check that true is returned when one of the defined urls is a regex
# for the given url
def
test_match_url_regex_baseurl
(
self
):
res
=
self
.
myBrowser
.
urlRegex
.
match
(
"http://w
eb
oob2.org/news"
)
res
=
self
.
myBrowser
.
urlRegex
.
match
(
"http://woob2.org/news"
)
self
.
assertTrue
(
res
)
# Successful test with relatives url
...
...
@@ -108,15 +108,15 @@ def test_build_nominal_case(self):
# Checks that build returns the right url when it needs to add
# identifiers and values of some parameters
def
test_build_urlParams_OK
(
self
):
res
=
self
.
myBrowser
.
urlParams
.
build
(
id
=
2
,
name
=
"w
eb
oob"
)
self
.
assertEquals
(
res
,
"http://test.com/?id=2&name=w
eb
oob"
)
res
=
self
.
myBrowser
.
urlParams
.
build
(
id
=
2
,
name
=
"woob"
)
self
.
assertEquals
(
res
,
"http://test.com/?id=2&name=woob"
)
# Checks that build returns the right url when it needs to add
# identifiers and values of some parameters.
# The same parameters can be in multiple patterns.
def
test_build_urlSameParams_OK
(
self
):
res
=
self
.
myBrowser
.
urlSameParams
.
build
(
id
=
2
,
name
=
"w
eb
oob"
)
self
.
assertEquals
(
res
,
"http://test.com?id=2&name=w
eb
oob"
)
res
=
self
.
myBrowser
.
urlSameParams
.
build
(
id
=
2
,
name
=
"woob"
)
self
.
assertEquals
(
res
,
"http://test.com?id=2&name=woob"
)
# Checks that an exception is raised when a parameter is missing
# (here, the parameter name)
...
...
@@ -128,7 +128,7 @@ def test_build_urlParams_KO_missedparams(self):
# added to the build function (here, the parameter title)
def
test_build_urlParams_KO_moreparams
(
self
):
self
.
assertRaises
(
UrlNotResolvable
,
self
.
myBrowser
.
urlParams
.
build
,
id
=
2
,
name
=
"w
eb
oob"
,
title
=
"test"
)
id
=
2
,
name
=
"woob"
,
title
=
"test"
)
# Check that an assert is sent if both klass is none
def
test_ishere_klass_none
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment