Skip to content

Instantly share code, notes, and snippets.

View Lufter's full-sized avatar
🏠
Working from home

Chun-Wei Liu Lufter

🏠
Working from home
  • University of Michigan
  • Ann Arbor, MI
View GitHub Profile
@tasdikrahman
tasdikrahman / python_tests_dir_structure.md
Last active June 30, 2024 00:15
Typical Directory structure for python tests

A Typical directory structure for running tests using unittest

Ref : stackoverflow

The best solution in my opinion is to use the unittest [command line interface][1] which will add the directory to the sys.path so you don't have to (done in the TestLoader class).

For example for a directory structure like this:

new_project

├── antigravity.py

@fairchild
fairchild / arduino_multibyte_serial_example.cpp
Created April 13, 2009 07:37
Simple updated examples of arduino serial communications
/* ------------------------------------------------
* SERIAL COM - HANDELING MULTIPLE BYTES inside ARDUINO - 03_function development
* by beltran berrocal
*
* this prog establishes a connection with the pc and waits for it to send him
* a long string of characters like "hello Arduino!".
* Then Arduino informs the pc that it heard the whole sentence
*
* the same as examlpe 03 but it deploys 2 reusable functions.
* for doing the same job.