Skip to content

Mec-iS/stockwatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A TDD exercise:

stock market reader/logger

Inspired by PacktPub's Test Driven Python Development

To have an idea of what is going on, from the root directory:

python testing/tests_TimeSeries.py

TO-DO:

  • Write tests! (:

Note

Main Pattern:

      -> Red: Arrange-Act-Assert
      |  Green
      |  Refactor ->-
      |              |
       ------<-------             
Refactoring:
- Rename variables and methods
- Make comments redundant by naming constants or using Enum
- Extract method refactoring
- Replace calculations with local variables
- Extract conditionals to methods
- Extract class
- Move method to class
Some vocabulary:
1. 'Test doubles':
- mocks
- stubs
- fakes
- spies
2. 'Patching'

TODOs

  • complete the Event() and Action() classes

About

A TDD experiment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages