GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bstiel/python-celery-unit-testing: https://www.distributedpython.com/2018/05/01/unit-testing-celery-tasks

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
env.env
env.env
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Unit Testing Celery Tasks

This projects contains the source code examples accompanying the blog post: https://www.python-celery.com/2018/05/01/unit-testing-celery-tasks.

Docker use is highly recommended.

With docker

  1. Bring up the docker stack: docker-compose up -d

  2. Run unit tests: docker-compose exec app pyton -m unittest discover -vv

Without docker

  1. Install and start RabbitMQ: Ensure RabbitMQ runs on port 5672 and the user user with password password is set up

  2. Create virtual environment: virtualenv celery-unit-test

  3. Activate virtual environment: source activate celery-unit-test

  4. Install pip packages: pip install -r requirements.txt

  5. Run unit tests: RABBITMQ_DEFAULT_USER=user CELERY_BROKER_URL=amqp://user:password@localhost:5672 python -m unittest discover -vv

About

https://www.distributedpython.com/2018/05/01/unit-testing-celery-tasks

www.distributedpython.com/2018/05/01/unit-testing-celery-tasks

Resources

Readme
Activity

Stars

13 stars

Watchers

3 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.