Module: Satorix::CI::Test::Python::DjangoTest

Extended by:
DjangoTest
Includes:
Shared::Console
Included in:
DjangoTest
Defined in:
lib/satorix/CI/test/python/django_test.rb

Instance Method Summary collapse

Methods included from Shared::Console

#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

#goObject



12
13
14
15
# File 'lib/satorix/CI/test/python/django_test.rb', line 12

def go
  log_bench('Displaying current Python version...') { run_command(%w[python --version]) }
  log_bench('Running tests...') { run_tests }
end

#run_testsObject



18
19
20
21
# File 'lib/satorix/CI/test/python/django_test.rb', line 18

def run_tests
  run_command([manage, 'collectstatic'])
  run_command([manage, 'test', 'public'])
end