An open API service indexing awesome lists of open source software.

https://github.com/nubank/clj-github-mock

An emulator of the github api implemented in clojure to test your github app
https://github.com/nubank/clj-github-mock

Last synced: 5 months ago
JSON representation

An emulator of the github api implemented in clojure to test your github app

Awesome Lists containing this project

README

          

# clj-github-mock

_current version:_

[![Current Version](https://img.shields.io/clojars/v/dev.nubank/clj-github-mock.svg)](https://clojars.org/dev.nubank/clj-github-mock)

_docs:_
[Found on cljdoc](https://cljdoc.xyz/d/nubank/clj-github-mock/)

`clj-github-mock` provides a `ring` like handler that emulates the github api.
Since most clojure http servers are compatible with the `ring` protocol,
you can use the handler with either `ring` itself or `http-kit` or `pedestal` for example.
Most commonly though you will use the handler combined with a library that fakes http requests
like `clj-http-fake` or `http-kit-fake`. That way you can test that your code that interacts
with the github api is working by using `clj-github-mock` behind the scenes.

**Important**: `clj-github-mock` does not cover the entire github api and should not
be used as the only way to test your github application. Make sure you test your code
against the real github api itself.