Posts con #PyTest

#PyTest

Posts públicos de X que usan #PyTest.

Hashtags relacionados

  1. Bhaskar - Tech✓@bhaskarreddy86
    Pytest series: parametrize One test, many inputs: @pytest.mark.parametrize("a, b, total", [ (2, 3, 5), (0, 0, 0), (-1, 1, 0), ]) def test_add(a, b, total): assert a + b == total Runs 3 times. A failure shows exactly which input broke. #Python #pytest
    100102
  2. Bhaskar - Tech✓@bhaskarreddy86
    Pytest series, : running tests pytest -v shows each test name pytest -k login runs tests matching "login" pytest -x stops at first failure pytest test_api.py::test_status runs one test TIL -k saves so much time. #Python #pytest
    00037
  3. Bhaskar - Tech✓@bhaskarreddy86
    AI tip I learned: when asking AI to write code, also ask it to write the tests. "Write this function and 3 pytest tests for it, including one edge case." You catch mistakes much faster. #AI #Python #pytest
    00037
  4. Bhaskar - Tech✓@bhaskarreddy86
    Pytest interview questions I found useful to revise: 1. What is a fixture? 2. What does do? 3. Fixture scopes? function, class, module, session 4. How to run one test? pytest -k name 5. What is parametrize? How many can you answer? #Python #pytest
    00037
  5. PyCharm, a JetBrains IDE✓@pycharm
    Ever wondered whether to use #pytest or #unittest? Our latest comparison guide breaks down the strengths and weaknesses of each testing framework, so you can choose the one that works better for you! 💪
    Descargar
    1124020K
  6. Bhaskar - Tech✓@bhaskarreddy86
    Pytest series: fixtures import pytest @pytest.fixture def user(): return {"name": "Bhaskar"} def test_name(user): assert user["name"] == "Bhaskar" Write setup once, reuse it in every test. #Python #pytest
    000119
  7. Bhaskar - Tech✓@bhaskarreddy86
    Pytest series: fixture scope + # import pytest @pytest.fixture(scope="module") def db(): conn = {"users": []} yield conn conn.clear() any test file can use it, no import needed. #Python #pytest
    100107
  8. Freya Bruhin@the_compiler
    Yay, #pytest has cracked 50%! So every second #Python developer is now using pytest (2021, up from 49% in 2020). Unfortunately, 38% are not using any test framework at all (up from 37% in 2020)...
    Descargar
    Python Software Foundation @ThePSF
    The 2021 Python Developers Survey is out and you can check out the highlights or the raw data. Thank you so very much to @jetbrains for providing this amazing community resource for the fifth year in a row!
    51139
  9. Python Software Foundation✓@ThePSF
    The 2021 Python Developers Survey is out and you can check out the highlights or the raw data. Thank you so very much to @jetbrains for providing this amazing community resource for the fifth year in a row!
    242121
  10. Bruno Oliveira@nicoddemus
    Woot! Announcing my #pytest book 🤗: Please RT for reach! 😁
    895170
  11. TestDriven.io@testdrivenio
    Developing an API with FastAPI and GraphQL by @MOluwole Covers how to: 1⃣Use the Orator ORM to interact with a Postgres database 2⃣Integrate #GraphQL into a #FastAPI app with Graphene 3⃣Test a GraphQL API with #pytest #Python
    021845.2K
  12. pytest.org@pytestdotorg
    #pytest 6.0 is coming! 🕕 As a major release, it has lots of new features, improvements and bug fixes. It also has some backwards-incompatible changes and new deprecations. Check the changelog:
    Descargar
    395344
  13. Cameron Maske@cameronmaske
    Slow tests making you sad? Here is how you easily hunt them down with pytest. Simply include `--duration=10` in your `py.test` command to see the 10 slowest tests. #python #pytest #testing
    Descargar
    22051
  14. TestDriven.io@testdrivenio
    Test-Driven Development with Python, Flask, and Docker Learn how to: 🔸Develop an API with #Python and #Flask 🔸Practice Test-Driven Development with #pytest 🔸Containerize Flask with #Docker 🔸Deploy Flask to Heroku via GitLab CI (🐍 Just updated! 🐳)
    118694.6K
  15. TestDriven.io@testdrivenio
    Test-Driven Development with Python, Flask, and Docker Learn how to: - Develop an API with #Python and #Flask - Practice Test-Driven Development with #Pytest - Containerize Flask with #Docker - Deploy Flask to #Heroku via GitLab CI 🐍🐳
    218829.7K
  16. Mostrar más posts