Compare commits
6 Commits
8e70ce3c26
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d35f85c1b | |||
| 3eaa187019 | |||
| d274bdad49 | |||
| ebc55fbf8d | |||
| aefb0dc2ab | |||
| 249cf62fcc |
10
.gitea/workflows/test_clients.yaml
Normal file
10
.gitea/workflows/test_clients.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
name: test-clients
|
||||
run-name: ${{ gitea.actor }} is testing pyinvoiceninja
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
pyinvoiceninja:
|
||||
runs-on: invoiceninja
|
||||
steps:
|
||||
- run: echo "Hello world!"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Python Invoice Ninja SDK
|
||||
# pyinvoiceninja
|
||||
|
||||
Inspired by the [official PHP SDK](https://github.com/invoiceninja/sdk-php), a
|
||||
Python wrapper for Invoice Ninja's REST API.
|
||||
|
||||
@@ -137,10 +137,10 @@ class InvoiceNinjaClient(object):
|
||||
bool
|
||||
True if the server response is OK, False otherwise.
|
||||
"""
|
||||
logger.debug(f'Pinging {self.base_url}/ping with headers {self.headers}')
|
||||
self._log_debug(f'Pinging {self.base_url}/ping with headers {self.headers}')
|
||||
server_response = requests.get(url=f'{self.base_url}/ping',
|
||||
headers=self.headers)
|
||||
logger.debug(f'Server response: {server_response.status_code}, {server_response.text}')
|
||||
self._log_debug(f'Server response: {server_response.status_code}, {server_response.text}')
|
||||
|
||||
return server_response.ok
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-24.05.tar.gz") {} }:
|
||||
|
||||
|
||||
with pkgs;
|
||||
|
||||
6
tests/test.env
Normal file
6
tests/test.env
Normal file
@@ -0,0 +1,6 @@
|
||||
# Base URL of an Invoice Ninja instance
|
||||
BASE_URL=
|
||||
|
||||
# API token for an Invoice Ninja instance
|
||||
API_TOKEN=
|
||||
|
||||
Reference in New Issue
Block a user