-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from DiamondLightSource/odd_chars
Odd chars
- Loading branch information
Showing
5 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = "v1.8.0" | ||
VERSION = "v1.9.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Release Notes (Development) | ||
=========================== | ||
|
||
Changes merged into master | ||
-------------------------- | ||
| Jira Task | GitHub Issue | Type | Description | | ||
|-----------|--------------|------|---------------------------------------| | ||
|I04_1-1062 | - |Minor |Only letters, numbers, _ and - allowed| | ||
|
||
Change Types: | ||
* Major - Backward incompatible change | ||
* Minor - Backward compatible change in API/functionality | ||
* Patch - Bug fix, no change in functionality | ||
|
||
|
||
|
19 changes: 19 additions & 0 deletions
19
tests/unit_tests/test_dls_barcode/test_datamatrix/test_datamatrix.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import unittest | ||
|
||
from mock import Mock, patch | ||
|
||
from dls_barcode.datamatrix.datamatrix import DataMatrix | ||
|
||
class TestDatamatrix(unittest.TestCase): | ||
|
||
def test_contains_allowed_characers(self): | ||
datamatrix = DataMatrix(Mock) | ||
test_string_good = "AbcD123_-" | ||
self.assertTrue(datamatrix._contains_allowed_chars_only(test_string_good)) | ||
|
||
test_string_bad = "AbcD123_-$<" | ||
self.assertFalse(datamatrix._contains_allowed_chars_only(test_string_bad)) | ||
|
||
|
||
|
||
|