Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
22
gaia/tests/python/gaia-ui-tests/gaiatest/mocks/mock_user.py
Executable file
22
gaia/tests/python/gaia-ui-tests/gaiatest/mocks/mock_user.py
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
|
||||
class MockUser(dict):
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
# set your default values
|
||||
import time
|
||||
self['name'] = 'marketplace_%s' % repr(time.time()).replace('.', '')
|
||||
self['email'] = '%s@restmail.net' % self['name']
|
||||
self['password'] = 'Password12345'
|
||||
|
||||
# update with any keyword arguments passed
|
||||
self.update(**kwargs)
|
||||
|
||||
# allow getting items as if they were attributes
|
||||
def __getattr__(self, attr):
|
||||
return self[attr]
|
||||
Loading…
Reference in a new issue