Forráskód Böngészése

Moving test requirements to appropriate file and now using our dpytest fork

Lucas Villeneuve 5 éve
szülő
commit
9715586d78
3 módosított fájl, 7 hozzáadás és 4 törlés
  1. 1 2
      .travis.yml
  2. 0 2
      requirements.txt
  3. 6 0
      tests/requirements.txt

+ 1 - 2
.travis.yml

@@ -17,8 +17,7 @@ before_install:
   - python --version
 install:
   - pip install -r requirements.txt
-  - pip install -U codecov
-  - pip install -U pytest-cov
+  - pip install -r tests/requirements.txt
 script:
   # Creating the applicative database
   - sudo mariadb -e "CREATE DATABASE $DB_NAME; CREATE USER IF NOT EXISTS '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASSWORD'; GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"

+ 0 - 2
requirements.txt

@@ -29,8 +29,6 @@ pycares==3.1.1
 pycparser==2.20
 PyNaCl==1.4.0
 pyparsing==2.4.7
-pytest==6.2.1
-pytest-asyncio==0.14.0
 python-dateutil==2.8.1
 pytz==2020.5
 requests==2.25.1

+ 6 - 0
tests/requirements.txt

@@ -0,0 +1,6 @@
+codecov==2.1.11
+coverage==5.3.1
+pytest==6.2.1
+pytest-asyncio==0.14.0
+pytest-cov
+git+https://github.com/LucasVilleneuve/dpytest.git#egg=dpytest # Installing a fork of dpytest to fix an error with member_cache_flags