File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 22
33# ignore human-written test files
44tests/test_utils_retries.py
5+
6+ # ignore Makefile
7+ Makefile
Original file line number Diff line number Diff line change 1+ PACKAGE_NAME := unstructured-python-client
2+ CURRENT_DIR := $(shell pwd)
3+ ARCH := $(shell uname -m)
4+
5+ # ##########
6+ # Install #
7+ # ##########
8+
9+ test-install :
10+ pip install requests_mock
11+
12+ # ################
13+ # Test and Lint #
14+ # ################
15+
16+ .PHONY : test
17+ test :
18+ PYTHONPATH=. pytest \
19+ tests
Original file line number Diff line number Diff line change 1111def get_api_key ():
1212 api_key = os .getenv ("UNS_API_KEY" )
1313 if api_key is None :
14- raise ValueError ("UNS_API_KEY environment variable not set" )
14+ raise ValueError ("""UNS_API_KEY environment variable not set.
15+ Set it in your current shell session with `export UNS_API_KEY=<api_key>`""" )
1516 return api_key
1617
1718# this test requires UNS_API_KEY be set in your shell session. Ex: `export UNS_API_KEY=<api_key>`
You can’t perform that action at this time.
0 commit comments