Skip to content

Commit

Permalink
(maint) Clean up requires in pdk/tests/unit
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Sep 30, 2019
1 parent cbc5fc2 commit 182b9d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/pdk/cli/test/unit.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require 'pdk/cli/util/option_validator'
require 'pdk/report'

module PDK::CLI
@test_unit_cmd = @test_cmd.define_command do
name 'unit'
Expand All @@ -15,6 +12,7 @@ module PDK::CLI
flag :c, 'clean-fixtures', _('Clean up downloaded fixtures after the test run.')

option nil, :tests, _('Specify a comma-separated list of unit test files to run.'), argument: :required, default: '' do |values|
require 'pdk/cli/util/option_validator'
PDK::CLI::Util::OptionValidator.comma_separated_list?(values)
end

Expand All @@ -23,6 +21,7 @@ module PDK::CLI

run do |opts, _args, _cmd|
require 'pdk/tests/unit'
require 'pdk/report'

PDK::CLI::Util.validate_puppet_version_opts(opts)

Expand Down

0 comments on commit 182b9d9

Please sign in to comment.