File: patch.py

package info (click to toggle)
python-mongomock 4.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,024 kB
  • sloc: python: 16,412; makefile: 24
file content (11 lines) | stat: -rw-r--r-- 196 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
import mongomock


@mongomock.patch(servers=(('server.example.com', 27017),))
class MyTestA(object):
    ...


@mongomock.patch(('mydata.com', 'myprivatedata.com'))
class MyTestB(object):
    ...