Skip to main content

M220P: MongoDB for Python Developers

Learn the essentials of Python application development with MongoDB.

Chapter 0

Ticket: Connection

(mflix_venv) PS D:\projects\mflix-python> pytest -m connection
============================= test session starts =============================
platform win32 -- Python 3.7.2, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: D:\projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collecting 0 items
collecting 1 item
collecting 5 items
collecting 9 items
collecting 12 items
collecting 13 items
collecting 14 items
collecting 16 items
collecting 18 items
collecting 21 items
collecting 22 items
collecting 25 items
collecting 27 items
collecting 32 items
collecting 33 items
collecting 37 items
collecting 41 items
collecting 43 items
collected 43 items
  

tests\test_db_connection.py ....                                         [100%]

============================= 39 tests deselected =============================
=================== 4 passed, 39 deselected in 3.45 seconds ===================
(mflix_venv) PS D:\projects\mflix-python> 

Chapter 1: Driver Setup

Ticket: Projection

(mflix_venv) PS D:\projects\mflix-python> pytest -m projection
============================= test session starts =============================
platform win32 -- Python 3.7.2, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: D:\projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_projection.py ..                                              [100%]

============================= 41 tests deselected =============================
=================== 2 passed, 41 deselected in 2.58 seconds ===================
(mflix_venv) PS D:\projects\mflix-python> 

Ticket: Text and Subfield Search

(mflix_venv) PS D:\projects\mflix-python> pytest -m text_and_subfield_search
============================= test session starts =============================
platform win32 -- Python 3.7.2, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: D:\projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_text_and_subfield_search.py .....                             [100%]

============================= 38 tests deselected =============================
=================== 5 passed, 38 deselected in 5.03 seconds ===================                low). To find out more, vi
(mflix_venv) PS D:\projects\mflix-python> 

Chapter 2: User-Facing Backend

Ticket: Paging

PS F:\Projects\mflix-python> pytest -m paging
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_paging.py ...                                                 [100%]

============================= 40 tests deselected =============================
=================== 3 passed, 40 deselected in 4.03 seconds ===================
PS F:\Projects\mflix-python>

Ticket: Faceted Search

PS F:\Projects\mflix-python> pytest -m facets
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_facets.py ..                                                  [100%]

============================= 41 tests deselected =============================
=================== 2 passed, 41 deselected in 2.70 seconds ===================
PS F:\Projects\mflix-python>

Ticket: User Management

PS F:\Projects\mflix-python> pytest -m user_management
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_user_management.py ....                                       [100%]

============================= 39 tests deselected =============================
=================== 4 passed, 39 deselected in 4.81 seconds ===================
PS F:\Projects\mflix-python>

Ticket: User Preferences

PS F:\Projects\mflix-python> pytest -m user_preferences
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_user_preferences.py ....                                      [100%]

============================= 39 tests deselected =============================
================== 4 passed, 39 deselected in 18.06 seconds ===================
PS F:\Projects\mflix-python>

Ticket: Get Comments

PS F:\Projects\mflix-python> pytest -m get_comments
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_get_comments.py ...                                           [100%]

============================= 40 tests deselected =============================
=================== 3 passed, 40 deselected in 5.20 seconds ===================
PS F:\Projects\mflix-python>

Ticket: Create and Update Comments

PS F:\Projects\mflix-python> pytest -m create_update_comments
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_create_update_comments.py ....                                [100%]

============================= 39 tests deselected =============================
=================== 4 passed, 39 deselected in 3.66 seconds ===================
PS F:\Projects\mflix-python>

Ticket: Delete Comments

PS F:\Projects\mflix-python> pytest -m delete_comments
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_delete_comments.py ...                                        [100%]

============================= 40 tests deselected =============================
=================== 3 passed, 40 deselected in 3.71 seconds ===================
PS F:\Projects\mflix-python>

Chapter 3: Admin Backend

Ticket: User Report

PS F:\Projects\mflix-python> pytest -m user_report
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_user_report.py ..                                             [100%]

============================= 41 tests deselected =============================
=================== 2 passed, 41 deselected in 1.95 seconds ===================
PS F:\Projects\mflix-python>

Ticket: Migration

PS F:\Projects\mflix-python> pytest -m migration
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_migration.py .                                                [100%]

============================= 42 tests deselected =============================
=================== 1 passed, 42 deselected in 1.53 seconds ===================
PS F:\Projects\mflix-python>

Chapter 4: Resilience

Ticket: Connection Pool

PS F:\Projects\mflix-python> pytest -m connection_pooling
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_connection_pooling.py .                                       [100%]

============================= 42 tests deselected =============================
=================== 1 passed, 42 deselected in 1.53 seconds ===================
PS F:\Projects\mflix-python>

Ticket: Timeouts

PS F:\Projects\mflix-python> pytest -m timeouts
============================= test session starts =============================
platform win32 -- Python 3.6.4, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: F:\Projects\mflix-python, inifile: pytest.ini
plugins: flask-0.11.0
collected 43 items

tests\test_timeouts.py .                                                 [100%]

============================= 42 tests deselected =============================
=================== 1 passed, 42 deselected in 1.62 seconds ===================
PS F:\Projects\mflix-python>

Popular posts from this blog

Synology: Commonly Used Commands

Commonly used commands via ssh with Synology NAS.

American Accent Training Resources

American Accent Training Book and CDs American Accent Training by Ann Cook Rebecca Linquist https://www.youtube.com/user/rebeccalinquist LISA’S YOUTUBE VIDEOS http://www.accurateenglish.com/lisas-youtube-videos/ Rachel's English Youtube Channel https://www.youtube.com/user/rachelsenglish Accent Ace https://www.youtube.com/user/AccentAceConfidence Practice American English sounds with free video lessons by Cheryl A. Posey http://www.speakingyourbest.com/freevideolessons.html Shaw English Online https://www.youtube.com/user/ShawEducation Pronunciation Pro https://www.youtube.com/user/pronunciationpro Heather Hansen https://www.youtube.com/user/heatherhansen

Microsoft Windows: Commonly Used Shortcuts

Windows shortcuts Shortcuts Description Windows + Up Arrow Maximize active window Windows + Down Arrow Restore active window Windows + Left Arrow Move active window to half left of screen Windows + Right Arrow Move active window to half right of screen Windows + A Open Notifications window Windows + C Open C ortana Windows + E Open Windows E xplorer Windows + F Open Windows' F eedback Hub Windows + I Open Windows Settings Windows + L L ock screenr Windows + M M inimize all active windows Windows + P Send screen to P rojector Windows + R Open R UN dialog Windows + Pause Open System Properties window Windows + SHIFT + S Open S creenClipping tool CTRL + SHIFT + ESC Open Task Manager