Kunaal Thanikkunaal.hashnode.dev·14 hours agoPytest FixturesFixtures: A pytest fixture is a function in the pytest framework that provides a fixed baseline environment for tests. This environment can include setting up database connections, preparing test data, or even creating temporary directories. Fixture...DiscussAutomation Conceptstestguardians
Kunaal Thanikkunaal.hashnode.dev·19 hours agoPage Object ModelThe Page Object Model (POM) is a design pattern in software testing where web page elements are represented as objects. Each page class encapsulates the page's behaviors and elements, promoting code reusability and maintainability by separating test ...DiscussAutomation Conceptspage-object-model
Mateo Ramirez Rubiomateoramirezr.hashnode.dev·Jul 22, 2024Mastering Testing in Django REST Framework: From Pytest and Fixtures to Mocks and CoverageIntroduction In this blog we'll see a basic guide on how to test a Django project using the Django REST Framework! Here, we'll learn the basics of testing with pytest, including essential concepts such as fixtures and mocks, to test execution and tes...Discuss·40 readsDjango
Kunaal Thanikkunaal.hashnode.dev·Jul 18, 2024CH01- InitializationFirst of all i created a repo on GitHub https://github.com/kunaal-ai/para-bank-ui-automation then cloned on local using cmd git clone https://github.com/kunaal-ai/para-bank-ui-automation and installed pytest plugin with following command pip install...DiscussPython Playwright UI Automationautomation
Azhar Ismagulovaazharcodeit.hashnode.dev·Jul 9, 2024Midpoint Progress of My HOT Internship 🌍Hello there! 👋 Welcome to another blog post about my journey as an Outreachy intern at HOT. We're right in the middle of my journey—literally, it's Wednesday (let's adjust to 5/2) and it's July. Mid of the mid of the mid, haha. Hopefully, my progres...Discuss·1 like·69 readsHotosm
Azhar Ismagulovaazharcodeit.hashnode.dev·Jun 30, 2024Meet HOTOSMWelcome all! Greetings to aspiring and fellow interns, and to those interested in what the community at HOTOSM is occupied with! I would like to introduce you to the vast aspects of work here at HOT, go over details of the project I am currently invo...DiscussOpenMapping
Sushil Tiwarisusilnem.hashnode.dev·Jun 19, 2024Python Unit Testing: MockingMocking means replacing real objects with pretend ones during testing, especially in unit tests. This technique lets to create different scenarios without using real resources, which saves time and effort. The Mock() object from the unittest.mock cla...Discussmagicmock
Azhar Ismagulovaazharcodeit.hashnode.dev·Jun 18, 2024Behind the Scenes of CodingDuring my Outreachy experience, I often felt like a complete beginner. One of my first challenges was creating pull requests (PRs). As I started contributing to open-source projects, I quickly learned about the CI pipeline, which frequently popped up...Discuss·36 readsFastAPI
Fullchee Zhangfullchee.hashnode.dev·Apr 19, 2024unittest param order is the opposite of Jestwhich is the opposite order for Jestexpect(myVar).toBe(42) assumes the first is expected, second is actual in the error message. self.assertEqual(expected, actual) self.assertEqual(42, my_var) PyCharm even displays Expected and Actual Failure Expect...DiscussTIL
Andrew Dassandrewdass.hashnode.dev·Mar 8, 2024Python: How to use the "pytest" ModuleOverview This article will explain how to use the "pytest" module in the Python programming language. "pytest" is used to detect whether statements are True or False by using the assert command (1). Materials Python 3.6+ or PyPy3 (1) Python modules...DiscussPython