From the course: Create an Open-Source Project in Python
Unlock the full course today
Join today to access over 23,100 courses taught by industry experts.
Introduction to your project - Python Tutorial
From the course: Create an Open-Source Project in Python
Introduction to your project
- Our project is a simple command line application written in Python. Let's have a quick look at what it does before looking at the code. Before we run the application we can enter our poetry environment or add the poetry run command before the Python command you want to run. For example, I may want to run the reminder of py files help command, (typing) but since we are going to execute multiple commands, I prefer to enter the environment first instead of adding the poetry run every time. So I type poetry shell to enter the poetry environment and now I run the command to add a reminder. (typing) To list the reminders, I use the list command. And to add a task with a deadline, I use the add command with deadline option. Let's list them again and we see that the task which has passed the deadline is shown in red. Now, to mark something as done, we used a done command like this: (typing) and list them. To see…
Contents
-
-
-
-
What is pytest?1m 57s
-
(Locked)
Introduction to your project2m 35s
-
(Locked)
Writing simple tests3m 51s
-
(Locked)
Testing with multiple parameters4m 17s
-
(Locked)
Test if an exception is raised2m 41s
-
(Locked)
What is a fixture?3m 18s
-
(Locked)
Using fixture2m 38s
-
(Locked)
Skipping a test, with good reasons3m 17s
-
(Locked)
Checkpoint: What you have so far2m 1s
-
-
-
-
-