Class: LearnTest::Pytest::PytestChecker
- Inherits:
-
Object
- Object
- LearnTest::Pytest::PytestChecker
- Defined in:
- lib/learn_test/strategies/pytest/requirements_checker.rb
Class Method Summary collapse
Class Method Details
.check ⇒ Object
46 47 48 49 50 51 |
# File 'lib/learn_test/strategies/pytest/requirements_checker.rb', line 46 def self.check if !self.pytest_installed? puts "Please ensure pytest is installed" exit end end |
.pytest_installed? ⇒ Boolean
53 54 55 |
# File 'lib/learn_test/strategies/pytest/requirements_checker.rb', line 53 def self.pytest_installed? !`which pytest`.empty? end |