testing with python, pytest and vim
TRANSCRIPT
Getting Started• pip install pytest• pip install pytest-xdist
• If you are using Anaconda, pytest should already be installed
Directory/Folder structure
Create a tests folder in your project directory
Test data for testing dataframes
Name corresponding test files with a test_ infront
Using VIM• Open vim <filename> in the root directory• Enter :vsplit <tests/filename> in vim’s console• You will get a split window.• Ctrl-wx to swap columns in the order of preference. I.e. code on left,
test on right or vice versa• Ctrl-ww to switch editing columns