1. 23 2月, 2016 1 次提交
  2. 18 12月, 2015 1 次提交
  3. 08 10月, 2015 1 次提交
    • L
      avocado: Mass import cleanups · f4e82a6e
      Lucas Meneghel Rodrigues 提交于
      This is an automated mass import cleanup across all
      avocado source files:
      
      1) Imports follow the order:
       * Standard library imports
       * Non standard library external imports
       * Internal imports
       All separated by a single line
      2) One line between imports and the rest of the code
      3) Remove unused imports in the process
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      f4e82a6e
  4. 30 9月, 2015 1 次提交
  5. 03 9月, 2015 2 次提交
    • C
      Selftests: remove evil "simple import magic" · 6149e2dc
      Cleber Rosa 提交于
      Even though I may be the one to blame about coming up with this
      "simple import magic", I believe it was a mistake and we should get
      rid of them.
      
      There are a couple of other ways to actually do development out of
      of a source tree, including running unittests that do not require
      this amount of boiler plate code. Examples include just setting
      the PYTHONPATH environment variable to actually run (setuptools based)
      `python setup.py develop`.
      
      The little bits of what looks like the import magic that was left, is
      not really import magic. It's just that functional tests need to locate
      the Avocado source tree base directory to run the test runner from it.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      6149e2dc
    • C
      Selftests: move to adhere to unittest discover default pattern · 24d87eb4
      Cleber Rosa 提交于
      To be honest, our test code could still be kept in the same directories and
      have the same names. But I think we can improve two things here:
      
      1) Flatten a little bit the directory structure of selftests. Two path
      components are being dropped here: "all" and "avocado". So that
      "selftests/all/functional/avocado" becomes simply
      "selftests/functional".
      
      2) File names match what is, by default, recognized by unittest (the
      Standard Library module) based discovery of tests. That means that
      doc_build_test.py becomes test_doc_build.py. Not a big deal IMHO.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      24d87eb4
  6. 31 7月, 2015 1 次提交
  7. 18 6月, 2015 1 次提交
  8. 12 6月, 2015 1 次提交
    • L
      avocado.core.test: Fix problem with unittest compatibility · a795b877
      Lucas Meneghel Rodrigues 提交于
      Introduced with commit d6abdcd4,
      avocado tests no longer report correctly to the unittest runner.
      The reason is that there is a structure that must be correctly
      updated by the run() method (the result instance), that was not
      being updated in the new implementation.
      
      Therefore, one possible fix, presented here, is to once again
      *not* implement run() at all. this way we avoid messing around
      with internal data structures, and when avocado is executed
      under nosetests, or the default unittest runner, we get the
      expected behavior of the method. The downside is that we have
      less perceived integration among both classes.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      a795b877
  9. 09 6月, 2015 1 次提交
    • C
      API review: move avocado.test to avocado.core.test and expose avocado.Test · 08810698
      Cleber Rosa 提交于
      Only avocado.Test is of general interest to test writers. For that reason
      the entire test module has been moved to the avocado.core namespace.
      
      The recommended way to go about writing instrumented tests is something like:
      
         from avocado import Test
         class MyTest(Test):
            def test_foo(self):
               do_stuff()
      
      Changes from v2:
      * Fixed references in docstrings
      * Fixed refrences of avocado.test in Writing Test Guide docs
      
      Changes from v1:
      * Fixed comment typo on commit message
      * Fixed old reference of avocado.test (then test.Test) instead of
        avocado then Test in GDB docs.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      08810698
  10. 06 5月, 2015 1 次提交
  11. 24 4月, 2015 1 次提交
  12. 14 4月, 2015 1 次提交
  13. 29 1月, 2015 1 次提交
  14. 09 1月, 2015 1 次提交
  15. 28 11月, 2014 1 次提交
  16. 30 9月, 2014 1 次提交
  17. 07 8月, 2014 1 次提交
  18. 10 7月, 2014 1 次提交
  19. 28 5月, 2014 1 次提交
  20. 23 5月, 2014 1 次提交
  21. 17 5月, 2014 1 次提交
  22. 15 5月, 2014 1 次提交
  23. 25 4月, 2014 2 次提交