Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
2fc29987
authored
Sep 02, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix doctests (again)
Dict order
parent
9a6fa0e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
circle/dashboard/views.py
+12
-7
No files found.
circle/dashboard/views.py
View file @
2fc29987
...
...
@@ -190,13 +190,18 @@ class FilterMixin(object):
The final dict looks like this: {'name': xy, 'node':1}
>>> f = FilterMixin()
>>> f._parse_get({'s': "hello"}) # doctest: +ELLIPSIS
{u's': u'...', u'name': u'hello'}
>>> f._parse_get({'s': "name:hello owner:test"}) # doctest: +ELLIPSIS
{u'owner': u'test', u's': u'...', u'name': u'hello'}
>>> f._parse_get({'s': "name:hello whitespace node:node 3 oh"})
... # doctest: +ELLIPSIS
{u'node': u'node 3 oh', u's': u'...', u'name': u'hello whitespace'}
>>> o = f._parse_get({'s': "hello"}).items()
>>> o.sort()
>>> o # doctest: +ELLIPSIS
[(u'name', u'hello'), (...)]
>>> o = f._parse_get({'s': "name:hello owner:test"}).items()
>>> o.sort()
>>> o # doctest: +ELLIPSIS
[(u'name', u'hello'), (u'owner', u'test'), (...)]
>>> o = f._parse_get({'s': "name:hello ws node:node 3 oh"}).items()
>>> o.sort()
>>> o # doctest: +ELLIPSIS
[(u'name', u'hello ws'), (u'node', u'node 3 oh'), (...)]
"""
s
=
GET_dict
.
get
(
"s"
)
fake
=
GET_dict
.
copy
()
...
...
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