Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make tests extensible from corporate site #4095

Merged
merged 28 commits into from
Jul 2, 2018
Merged

Commits on Jun 28, 2018

  1. Configuration menu
    Copy the full SHA
    cd82565 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8eaf66d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4623873 View commit details
    Browse the repository at this point in the history
  4. Mark some OAuth tests as "only_community"

    These tests won't be ran when imported from the corporate site.
    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    7ce8015 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c58de84 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    be48ae2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ec133fb View commit details
    Browse the repository at this point in the history
  8. Generalize tests naming

    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    d55a15e View commit details
    Browse the repository at this point in the history
  9. Generalize names

    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    9b06d61 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f17e79e View commit details
    Browse the repository at this point in the history
  11. Split project tests in classes by topic

    All the translation tests manage different user permissions on each
    different project, which is more complicated to test them from
    Corporate. So, they are marked as `only_community`
    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    e6c879d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    02b3236 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f98fb39 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d4222e5 View commit details
    Browse the repository at this point in the history
  15. Minor fix to URL base

    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    821f3c9 View commit details
    Browse the repository at this point in the history
  16. Define the URL inside setUp because it fails when loading the test

    When loading this test from outside (readthedocsinc) the ``reverse``
    can't be calculated because the ``search`` name is not defined in the URLConf.
    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    af4e010 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    10fd674 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e10e2d4 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    7e96031 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    ab39aef View commit details
    Browse the repository at this point in the history
  21. Use /dashboard/ instead of / to avoid redirects

    Accessing ``/`` while logged in redirects to ``/dashboard/`` in the
    corporate site. This change makes this test compatible with both environments
    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    33813b5 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    7c2ec2e View commit details
    Browse the repository at this point in the history
  23. Fix test fixture loading

    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    638b740 View commit details
    Browse the repository at this point in the history
  24. Use reverse_lazy to avoid issues

    Since this is executed even when the test is skipped, we need to use
    the ``_lazy`` function.
    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    86e2844 View commit details
    Browse the repository at this point in the history
  25. Fix inheritance order

    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    74c2094 View commit details
    Browse the repository at this point in the history
  26. Depend on reliable data from the db for these tests

    This Feature is created inside a db migration. As we depend strictly
    on this Feature we can't rely on data from the migration since it's
    ran only once when the db is created and not re-populated on each
    test.
    
    We need to be sure that the data we rely on is in the database in a
    valid state and that it wasn't modified/deleted by any other test
    case. Because of this, we need to use a fixture or delete and create
    the data we rely on inside the ``setUp`` for this test.
    humitos committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    7077050 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2018

  1. Mark building test as community only

    These tests performs a call to our API from a signal hook in our
    corporate site and the API call in that file is not mocked, so they fail.
    humitos committed Jun 29, 2018
    Configuration menu
    Copy the full SHA
    7317ee9 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2018

  1. Remove all community marks from pytests

    These tests are excluded from the corporate site using pytest internals.
    humitos committed Jul 2, 2018
    Configuration menu
    Copy the full SHA
    178f4ab View commit details
    Browse the repository at this point in the history