diff --git a/main.py b/main.py index 555d935..15042d0 100644 --- a/main.py +++ b/main.py @@ -22,7 +22,7 @@ MAXTITLE=25 # The entire config object with all defaults config = { - "api" : "https://oboy.smilebasicsource.com/api", + "api" : "http://localhost:5000/api", "default_loglevel" : "WARNING", "websocket_trace" : False, "default_room" : 0, # Zero means it will ask you for a room diff --git a/test_contentapi.py b/test_contentapi.py index 4be1451..a936e7c 100644 --- a/test_contentapi.py +++ b/test_contentapi.py @@ -6,10 +6,11 @@ import logging class TestContentapi(unittest.TestCase): def setUp(self) -> None: - # MAYBE change all these some time? Should connect to a local instance!! - self.api = contentapi.ApiContext("https://oboy.smilebasicsource.com/api", logging) - self.known_content_id = 384 - self.known_name = "Megathread" + # Requires some local setup. This data points to the SBS instance you usually run to + # test the SBS frontend (contentapi_copy) + self.api = contentapi.ApiContext("http://localhost:5000/api", logging) + self.known_content_id = 15050 # 384 + self.known_name = "Big Dumb" # "Megathread" def test_apistatus(self): result = self.api.api_status()