File: version.py

package info (click to toggle)
aptly 1.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 49,928 kB
  • sloc: python: 10,398; sh: 252; makefile: 184
file content (11 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
from api_lib import APITest
import os


class VersionAPITest(APITest):
    """
    GET /version
    """

    def check(self):
        self.check_equal(self.get("/api/version").json(), {'Version': os.environ['APTLY_VERSION']})