<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swiftstory.git/tests, branch websockets-new-impl</title>
<subtitle>SwiftStory game</subtitle>
<id>http://git.sigexec.com/cgit.cgi/swiftstory.git/atom?h=websockets-new-impl</id>
<link rel='self' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/atom?h=websockets-new-impl'/>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/'/>
<updated>2021-12-29T18:46:26+00:00</updated>
<entry>
<title>Import resource_stream to reduce size of lines</title>
<updated>2021-12-29T18:46:26+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2021-12-29T18:36:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=f5edd5035d06adc7b6bceb1f521b4911706cde0b'/>
<id>urn:sha1:f5edd5035d06adc7b6bceb1f521b4911706cde0b</id>
<content type='text'>
Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
<entry>
<title>Make cards be part of the Python package data</title>
<updated>2021-12-26T17:28:21+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2021-12-26T16:11:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=d592880c4bc4c581d8847d96ff73bc319ca1fac2'/>
<id>urn:sha1:d592880c4bc4c581d8847d96ff73bc319ca1fac2</id>
<content type='text'>
We now load the cards using pkg_resources. This is way better in many
aspects:
 * we can install the package using pip without having issues loading
  cards
 * we don't need to chdir to / before running swiftstoryd
 * we don't need to rely on data_files which is deprecated.

Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
<entry>
<title>Make sure unit tests can be run from outside the package</title>
<updated>2021-12-25T13:25:20+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2021-12-25T12:40:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=65406f7b72f4004e4483573640cf0d555877dd55'/>
<id>urn:sha1:65406f7b72f4004e4483573640cf0d555877dd55</id>
<content type='text'>
The cards from usr/share are not accessible when running the tests from
a temporary directory. This happens for instance when running

  $ pybuild --test --test-pytest

Make sure that this command would succeed by mocking the calls to open.

Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
<entry>
<title>Move WS code outside the main into swiftstory.interface.ws.py</title>
<updated>2021-12-25T13:20:08+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2021-12-25T13:09:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=0bdaea4591fae05a1a93b6ddcf066f92e8f224f4'/>
<id>urn:sha1:0bdaea4591fae05a1a93b6ddcf066f92e8f224f4</id>
<content type='text'>
Also, the GameManager object is not created globally anymore when
importing the module.

Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
<entry>
<title>Use lowercase module names</title>
<updated>2021-12-23T22:15:21+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2021-12-23T14:27:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=82cd09e010783b81ec58145c7682f4b8da49ac85'/>
<id>urn:sha1:82cd09e010783b81ec58145c7682f4b8da49ac85</id>
<content type='text'>
Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
<entry>
<title>Use __main__.py instead of SwiftStory.py</title>
<updated>2021-12-23T22:15:21+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2021-12-23T14:03:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=1be5c49ae402b768f9206724abdd503c18933ae1'/>
<id>urn:sha1:1be5c49ae402b768f9206724abdd503c18933ae1</id>
<content type='text'>
Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
<entry>
<title>Add test for joining game without specifying the name</title>
<updated>2020-09-12T23:06:21+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2020-09-12T23:06:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=fc2c01888755d398f1bce1d0fbfa1ee822acfef1'/>
<id>urn:sha1:fc2c01888755d398f1bce1d0fbfa1ee822acfef1</id>
<content type='text'>
Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
<entry>
<title>Add test for play_card without card ID specified</title>
<updated>2020-09-12T22:27:55+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2020-09-12T22:27:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=ac77d76af2944c7f87a3e5e37ce654950926dfa9'/>
<id>urn:sha1:ac77d76af2944c7f87a3e5e37ce654950926dfa9</id>
<content type='text'>
Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
<entry>
<title>Handle exception when JSON received is not an object</title>
<updated>2020-09-12T22:17:41+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2020-09-12T22:16:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=c54514b283c47f774b0b6e9e22449ee6876ffc51'/>
<id>urn:sha1:c54514b283c47f774b0b6e9e22449ee6876ffc51</id>
<content type='text'>
Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
<entry>
<title>Add more tests for invalid commands</title>
<updated>2020-09-12T21:53:56+00:00</updated>
<author>
<name>Olivier Gayot</name>
<email>olivier.gayot@sigexec.com</email>
</author>
<published>2020-09-12T21:53:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.sigexec.com/cgit.cgi/swiftstory.git/commit/?id=306d7fbfd145b3f147611bdcf651530bfb4d808f'/>
<id>urn:sha1:306d7fbfd145b3f147611bdcf651530bfb4d808f</id>
<content type='text'>
Signed-off-by: Olivier Gayot &lt;olivier.gayot@sigexec.com&gt;
</content>
</entry>
</feed>
