Module: Satorix::CI::Test::Python::DjangoTest
Instance Method Summary
collapse
#colorize, #colors, #humanize_time, #log, #log_bench, #log_command, #log_duration, #log_error, #log_error_and_abort, #log_header, #run_command, #source_env_from
Instance Method Details
#go ⇒ Object
14
15
16
17
|
# File 'lib/satorix/CI/test/python/django_test.rb', line 14
def go
log_bench('Displaying current Python version...') { run_command 'python --version' }
log_bench('Running tests...') { run_tests }
end
|
#run_tests ⇒ Object
20
21
22
23
|
# File 'lib/satorix/CI/test/python/django_test.rb', line 20
def run_tests
run_command "#{ manage } collectstatic"
run_command "#{ manage } test public"
end
|