Git Product home page Git Product logo

bovine-aptesting's Introduction

bovine-aptesting

Experimental extension of the activitypub-testsuite for testing bovine.

This repository contains bovine-specific code and configuration. The test framework starts a Python subprocess at the beginning of a test session. The server main is in server.py. This sets up an in-memory database and adds a test reset endpoint. Before each test, the test reset action is invoked to reset the bovine database.

Note

At the time this test suite was created, the bovine code was changing frequently. There's a good chance the test suite will not run with the current version of bovine (without some changes).

Install

Requirements

  • MacOS or Linux
  • Python 3.11+
  • Node.js 16+

The project is currently configured to expect the activitypub-testsuite repository in a sibling directory. In the future, this may be modified to include activitypub-testsuite as a git submodule in the bovine-aptesting testing repository.

Set Up

  1. Create a directory to hold the repositories, testing, for example, but the name doesn't matter.

  2. Clone the activitypub-testsuite into that directory and install it.

git clone https://github.com/steve-bate/activitypub-testsuite.git
cd activitypub-testsuite/
poetry install
cd -
  1. Clone the bovine-aptesting repository into the testing directory (a sibling of the previous repository). Note the special submodule-related argument to clone.
git clone --recurse-submodules https://github.com/steve-bate/bovine-aptesting

Note

The bovine submodule is currently a test-related branch of my bovine fork. This branch contains several patches to fix issues and add some test-related endpoint (which are subject to change). This project will eventually be using the primary, authoritative repository.

At this point, the directory structure should look similar to the following one.

testing
  ├── activitypub-testsuite
  ├── bovine-aptesting
  1. Change to the bovine-aptesting directory and install it.
cd bovine-aptesting
poetry install

Usage

Run the tests from bovine-aptesting directory. The tests will run in a Python virtual environment created by Poetry. You will need to run them using

poetry run pytest

or

poetry shell  # creates a shell configured with the virtual environment
pytest

License

MIT License

bovine-aptesting's People

Contributors

steve-bate avatar

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.