2 ms·
rspec’s internal DSL is based on Ruby’s multi-line anonymous functions. I don’t know how you achieve a similar design in Python where you don’t have those in th
by chrisseaton 9y ago
rspec’s internal DSL is based on Ruby’s multi-line anonymous functions. I don’t know how you achieve a similar design in Python where you don’t have those in the same way. How do you write the equivalent of ‘it ‘does something’ do ... end’ in Python syntax?
- pmontra 9y agoThis seems a good starting point https://stackoverflow.com/questions/37334668/is-there-a-python-equivalent-for-rspec-to-do-tdd https://stackoverflow.com/questions/37334668/is-there-a-pyth... TLDR: not as nice as RSpec but close.
- chrisseaton 9y ago> not as nice as RSpec Right, well that probably answers the question about what they thought the magic is.