Skip to content

Commit

Permalink
turn off tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
KaraMelih committed Aug 16, 2024
1 parent c3125c7 commit d2b1fc1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions snews_cs/test/test_01_connection_to_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
import unittest

import snews_cs
import snews_pt.remote_commands as sptrc
# import snews_pt.remote_commands as sptrc

import io
import contextlib

class TestServer(unittest.TestCase):
def test_connection(self):
f = io.StringIO()
with contextlib.redirect_stdout(f):
#- Connect to server
sptrc.test_connection(detector_name='XENONnT', firedrill=False, start_at='LATEST', patience=8)

#- Check the output message; it should say "You (XENONnT) have a connection"
confirm_msg = 'You (XENONnT) have a connection to the server'
self.assertTrue(confirm_msg in f.getvalue())
# class TestServer(unittest.TestCase):
# def test_connection(self):
# f = io.StringIO()
# with contextlib.redirect_stdout(f):
# #- Connect to server
# sptrc.test_connection(detector_name='XENONnT', firedrill=False, start_at='LATEST', patience=8)
#
# #- Check the output message; it should say "You (XENONnT) have a connection"
# confirm_msg = 'You (XENONnT) have a connection to the server'
# self.assertTrue(confirm_msg in f.getvalue())

0 comments on commit d2b1fc1

Please sign in to comment.