Giter VIP home page Giter VIP logo

python_pytest's Introduction

Ⓜ️ TDD - Unit Tests

NPM NPM

Captura de Tela 2023-03-23 às 08 44 18

TDD Cycles:

Note the existence of three cycles:

  • Red: write a small automated test that, when run, will fail;
  • Green: Implement code that is sufficient to pass the newly written test;
  • Refactor: refactor the code in order to improve it, making it more functional and cleaner.

To perform testing on each feature of your code, you will always follow these cycles. These cycles are commonly referred to as red-green-refactor or red-green-blue.

📚CHALLENGE:

Develop an application with the following characteristics:

  • The application asks the user to enter a natural number
  • If the number is a multiple of 5, the application must print the word "fizz"
  • If the number is a multiple of 7, the application must print the word "buzz"
  • If the number is multiple of both, the application must print the word "fizzbuzz"
  • If the number is not a multiple of both, the application must print the word "miss"
  • Use the IDE of your choice
  • The function that identifies whether a number is a multiple of 5 or 7 must be created in a separate file and imported by the application
  • Development must be done in a Virtual Own environment

Running the codes

  • Requirements: Python 3+
# Clone repository
git clone https://github.com/GaabrielCoosta/PythonPro_Mod01

# Enter the folder
cd file

# Clone Files
Open the file folder in your preferred IDE
It is necessary that the two files.py are in the same folder

👍Emphasis

  • Excellent teaching, especially for beginners;
  • Good balance between theory and practice;
  • Hill exercises to put into practice and learn more;

python_pytest's People

Contributors

gaabrielcoosta avatar

Watchers

 avatar

python_pytest's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.