Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campaign
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Open sidebar
La Quadrature du Net
piphone
campaign
Commits
f3ab1469
Commit
f3ab1469
authored
Feb 06, 2017
by
okhin
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the test. Importer.url is '' not None when empty
parent
d11a53dd
Pipeline
#833
passed with stages
in 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
picampaign/importer/tests.py
picampaign/importer/tests.py
+7
-3
No files found.
picampaign/importer/tests.py
View file @
f3ab1469
...
...
@@ -56,7 +56,8 @@ class ImporterAdminTest(TestCase):
name
=
'test importer'
,
category
=
'repr'
,
campaign
=
self
.
campaign
,
file
=
json_file
file
=
json_file
,
url
=
''
)
self
.
site
=
AdminSite
()
...
...
@@ -131,6 +132,7 @@ class ImporterTest(TestCase):
)
self
.
assertEqual
(
importer
.
kind
(),
None
)
importer
.
file
=
'a'
importer
.
url
=
''
self
.
assertEqual
(
importer
.
kind
(),
'file'
)
importer
.
url
=
'http://www.example.com/'
self
.
assertEqual
(
importer
.
kind
(),
'url'
)
...
...
@@ -144,7 +146,8 @@ class ImporterTest(TestCase):
name
=
'test importer'
,
category
=
'repr'
,
campaign
=
self
.
campaign
,
file
=
json_file
file
=
json_file
,
url
=
''
)
self
.
assertEqual
(
importer
.
kind
(),
'file'
)
importer
.
handle
()
...
...
@@ -164,7 +167,8 @@ class ImporterTest(TestCase):
name
=
'test updater'
,
category
=
'updater'
,
campaign
=
self
.
campaign
,
file
=
csv_file
file
=
csv_file
,
url
=
''
)
self
.
assertEqual
(
importer
.
kind
(),
'file'
)
importer
.
handle
()
...
...
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